-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Travis CI User
committed
Nov 5, 2020
0 parents
commit 11902a4
Showing
2 changed files
with
87 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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-.*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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-802-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 d4121d8a17d9e53ad4421960e357dd2f89771603; 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-802-travis-gandiva-jar-osx | ||
--tag nightly-802-travis-gandiva-jar-osx | ||
--pattern "dist/*.jar" |