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
Oct 25, 2018
0 parents
commit 5534198
Showing
1 changed file
with
83 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,83 @@ | ||
# 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: linux | ||
dist: trusty | ||
sudo: required | ||
language: cpp | ||
services: | ||
- docker | ||
|
||
# don't build twice | ||
if: tag IS blank | ||
|
||
env: | ||
global: | ||
- PLAT=x86_64 | ||
- TRAVIS_TAG=test-27-ubuntu-trusty-gandiva | ||
|
||
before_install: | ||
- eval "${MATRIX_EVAL}" | ||
- ulimit -c unlimited -S | ||
- | | ||
sudo bash -c "echo -e 'Acquire::Retries 10; Acquire::http::Timeout \"20\";' > /etc/apt/apt.conf.d/99-travis-retry" | ||
sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test | ||
sudo apt-get update -qq | ||
matrix: | ||
fast_finish: true | ||
include: | ||
- compiler: gcc | ||
language: cpp | ||
os: linux | ||
jdk: openjdk8 | ||
env: | ||
- ARROW_TRAVIS_USE_TOOLCHAIN=1 | ||
- MATRIX_EVAL="CC=gcc-4.9 && CXX=g++-4.9" | ||
before_script: | ||
- git clone -b crossbow https://github.com/praveenbingo/arrow arrow | ||
- git -C arrow checkout aa063b337671670e884c3daf8d480b7d31e2e4e7 | ||
- mkdir -p dist | ||
- arrow/ci/travis_install_linux.sh | ||
- arrow/ci/travis_install_clang_tools.sh | ||
- export TRAVIS_BUILD_DIR=$TRAVIS_BUILD_DIR/arrow | ||
- arrow/ci/travis_install_toolchain.sh | ||
- cd arrow/cpp | ||
- mkdir build | ||
- cd build | ||
- export PATH=$TRAVIS_BUILD_DIR/cpp-toolchain/bin:$PATH | ||
- export BOOST_ROOT=$TRAVIS_BUILD_DIR/cpp-toolchain | ||
- export PROTOBUF_HOME=$TRAVIS_BUILD_DIR/cpp-toolchain | ||
- export LD_LIBRARY_PATH=$TRAVIS_BUILD_DIR/cpp-toolchain/lib:$LD_LIBRARY_PATH | ||
- cmake .. -DCMAKE_BUILD_TYPE=Release -DARROW_GANDIVA=ON -DARROW_BUILD_UTILITIES=OFF | ||
- make -j4 | ||
- ctest | ||
script: | ||
- cd $TRAVIS_BUILD_DIR/java | ||
- mvn clean install -P gandiva -Dgandiva.cpp.build.dir=../../cpp/build/release | ||
- cp gandiva/target/*.jar ../../dist/ | ||
- cd $TRAVIS_BUILD_DIR/.. | ||
deploy: | ||
provider: releases | ||
api_key: $CROSSBOW_GITHUB_TOKEN | ||
file_glob: true | ||
file: dist/*.jar | ||
skip_cleanup: true | ||
on: | ||
tags: true | ||
|
||
notifications: | ||
email: | ||
- praveen@dremio.com |