From 11902a47b4ce8b9b81d15fd92306ad6810384478 Mon Sep 17 00:00:00 2001 From: Travis CI User Date: Thu, 5 Nov 2020 12:20:11 +0000 Subject: [PATCH] --- .circleci/config.yml | 16 ++++++++++ .travis.yml | 71 ++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 87 insertions(+) create mode 100644 .circleci/config.yml create mode 100644 .travis.yml diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 00000000..6c155ea9 --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,16 @@ + +version: 2 + +jobs: + build: + machine: true + +workflows: + version: 2 + build: + jobs: + - build: + filters: + branches: + only: + - /.*-circle-.*/ diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 00000000..7cc634f5 --- /dev/null +++ b/.travis.yml @@ -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" \ No newline at end of file