Apache DataFusion SQL Query Engine
ARROW-3382: [Gandiva][C++] Run tests in travis
Pindikura Ravindrab954bbc23fb8
diff --git a/.travis.yml b/.travis.ymlindex 09487f90f2..24fde86ab0 100644--- a/.travis.yml+++ b/.travis.yml@@ -33,6 +33,7 @@ git:before_install:# Common pre-install steps for all builds+ - eval "${MATRIX_EVAL}"- ulimit -c unlimited -S- |if [ $TRAVIS_OS_NAME == "linux" ]; then@@ -92,6 +93,29 @@ matrix:- export PLASMA_VALGRIND=1- $TRAVIS_BUILD_DIR/ci/travis_script_python.sh 3.6- $TRAVIS_BUILD_DIR/ci/travis_upload_cpp_coverage.sh+ # Gandiva C++ w/ gcc 4.9+ - compiler: gcc+ language: cpp+ os: linux+ jdk: openjdk8+ env:+ - ARROW_TRAVIS_USE_TOOLCHAIN=1+ - ARROW_TRAVIS_VALGRIND=1+ - ARROW_TRAVIS_CLANG_FORMAT=1+ - ARROW_BUILD_WARNING_LEVEL=CHECKIN+ - ARROW_TRAVIS_GANDIVA=1+ - MATRIX_EVAL="CC=gcc-4.9 && CXX=g++-4.9"+ before_script:+ # Run if something changed in CPP.+ - if [ $ARROW_CI_CPP_AFFECTED != "1" ]; then exit; fi+ - $TRAVIS_BUILD_DIR/ci/travis_install_linux.sh+ - $TRAVIS_BUILD_DIR/ci/travis_install_clang_tools.sh+ - $TRAVIS_BUILD_DIR/ci/travis_lint.sh+ # If either C++ or Python changed, we must install the C++ libraries+ - git submodule update --init+ - $TRAVIS_BUILD_DIR/ci/travis_before_script_cpp.sh --only-library+ script:+ - $TRAVIS_BUILD_DIR/ci/travis_script_gandiva.sh# [OS X] C++ & Python w/ XCode 6.4- compiler: clanglanguage: cppdiff --git a/ci/travis_before_script_cpp.sh b/ci/travis_before_script_cpp.shindex 1729ca4fa4..1b389a21de 100755--- a/ci/travis_before_script_cpp.sh+++ b/ci/travis_before_script_cpp.sh@@ -88,6 +88,10 @@ if [ $ARROW_TRAVIS_PARQUET == "1" ]; then-DPARQUET_BUILD_EXECUTABLES=ON"fi+if [ $ARROW_TRAVIS_GANDIVA == "1" ]; then+ CMAKE_COMMON_FLAGS="$CMAKE_COMMON_FLAGS -DARROW_GANDIVA=ON"+fi+if [ $ARROW_TRAVIS_VALGRIND == "1" ]; thenCMAKE_COMMON_FLAGS="$CMAKE_COMMON_FLAGS -DARROW_TEST_MEMCHECK=ON"fidiff --git a/ci/travis_install_linux.sh b/ci/travis_install_linux.shindex e8cd010235..c1db2d5c5b 100755--- a/ci/travis_install_linux.sh+++ b/ci/travis_install_linux.sh@@ -21,6 +21,10 @@ sudo apt-get install -y -q \gdb binutils ccache libboost-dev libboost-filesystem-dev \libboost-system-dev libboost-regex-dev libjemalloc-dev+if [ "$CXX" == "g++-4.9" ]; then+ sudo apt-get install -y -q g++-4.9+fi+if [ "$ARROW_TRAVIS_VALGRIND" == "1" ]; thensudo apt-get install -y -q valgrindfidiff --git a/ci/travis_install_toolchain.sh b/ci/travis_install_toolchain.shindex 405c496f8c..eb4bdf21d6 100755--- a/ci/travis_install_toolchain.sh+++ b/ci/travis_install_toolchain.sh@@ -40,5 +40,6 @@ if [ ! -e $CPP_TOOLCHAIN ]; thenthrift-cpp=0.11.0 \zlib \glog \- zstd+ zstd \+ re2fidiff --git a/ci/travis_script_gandiva.sh b/ci/travis_script_gandiva.shnew file mode 100755index 0000000000..3dbd993c0a--- /dev/null+++ b/ci/travis_script_gandiva.sh@@ -0,0 +1,33 @@+#!/usr/bin/env bash++# 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.++set -e++source $TRAVIS_BUILD_DIR/ci/travis_env_common.sh++pushd $CPP_BUILD_DIR++PATH=$ARROW_BUILD_TYPE:$PATH ctest -j2 --output-on-failure -L unittest++# not running in parallel, since some of them are benchmarks+PATH=$ARROW_BUILD_TYPE:$PATH ctest -VV -L integ++popd++# TODO : Capture C++ coverage info