Skip to content

Commit

Permalink
No commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
Travis CI User committed Nov 9, 2020
0 parents commit afbce4c
Show file tree
Hide file tree
Showing 2 changed files with 87 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@

version: 2

jobs:
build:
machine: true

workflows:
version: 2
build:
jobs:
- build:
filters:
branches:
only:
- /.*-circle-.*/
71 changes: 71 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

os: osx
osx_image: xcode9.4
sudo: required
language: cpp
compiler: clang
services:
- docker

# don't build twice
if: tag IS blank

env:
global:
- PLAT=x86_64
- TRAVIS_TAG=nightly-806-travis-gandiva-jar-osx
- ARROW_TRAVIS_USE_TOOLCHAIN=1
- ARROW_TRAVIS_GANDIVA=1

before_script:
- pwd
- git clone --no-checkout https://github.com/apache/arrow arrow
- git -C arrow fetch -t https://github.com/apache/arrow master
- if [ $CROSSBOW_USE_COMMIT_ID = true ]; then git -C arrow checkout a3f97ab9b81162637f99d7a555391060d587824a; else git -C arrow checkout FETCH_HEAD; fi
- export TRAVIS_BUILD_DIR=$TRAVIS_BUILD_DIR/arrow
- git -C arrow submodule update --init --recursive
- brew update
- brew install bison flex llvm
- brew tap adoptopenjdk/openjdk
- brew cask install adoptopenjdk8
- export JAVA_HOME=/Library/Java/JavaVirtualMachines/adoptopenjdk-8.jdk/Contents/Home
- export PATH="$JAVA_HOME/bin:$PATH"
- export ARROW_TEST_DATA=$TRAVIS_BUILD_DIR/testing/data
- echo $JAVA_HOME
- which java

script:
- cd arrow
- mkdir -p dist
- dev/tasks/gandiva-jars/build-cpp-osx.sh || travis_terminate 1
- dev/tasks/gandiva-jars/build-java.sh || travis_terminate 1
# deploy using crossbow
# pip install pygit2 fails if MACOS_DEPLOYMENT_TARGET is set to an earlier version. Since the
# gandiva libraries are already built we can reset MACOS_DEPLOYMENT_TARGET to current osx version
- if [[ $MACOSX_DEPLOYMENT_TARGET ]] ; then export MACOSX_DEPLOYMENT_TARGET=$(sw_vers -productVersion | cut -d '.' -f 1,2) ; fi
- brew install libgit2
- pip3 install pygit2
- pip3 install click github3.py jinja2 jira ruamel.yaml setuptools_scm toolz
- >
python3 dev/tasks/crossbow.py
--queue-path $TRAVIS_BUILD_DIR
--queue-remote https://github.com/dremio/arrow-build
upload-artifacts
--sha nightly-806-travis-gandiva-jar-osx
--tag nightly-806-travis-gandiva-jar-osx
--pattern "dist/*.jar"

0 comments on commit afbce4c

Please sign in to comment.