Apache DataFusion SQL Query Engine
ARROW-3383: [Gandiva][Java] Fix java build
Pindikura Ravindrade59f3e054e3
diff --git a/.travis.yml b/.travis.ymlindex 24fde86ab0..2115218dd8 100644--- a/.travis.yml+++ b/.travis.yml@@ -93,21 +93,21 @@ 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+ # Gandiva C++ w/ gcc 4.9 and Java- compiler: gcclanguage: cppos: linuxjdk: openjdk8env:+ - ARROW_TRAVIS_GANDIVA=1- 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+ # Run if something changed in CPP or Java.+ - if [ $ARROW_CI_CPP_AFFECTED != "1" && $ARROW_CI_JAVA_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@@ -115,7 +115,8 @@ matrix:- git submodule update --init- $TRAVIS_BUILD_DIR/ci/travis_before_script_cpp.sh --only-libraryscript:- - $TRAVIS_BUILD_DIR/ci/travis_script_gandiva.sh+ - $TRAVIS_BUILD_DIR/ci/travis_script_gandiva_cpp.sh+ - $TRAVIS_BUILD_DIR/ci/travis_script_gandiva_java.sh# [OS X] C++ & Python w/ XCode 6.4- compiler: clanglanguage: cppdiff --git a/ci/travis_script_gandiva.sh b/ci/travis_script_gandiva_cpp.shsimilarity index 100%rename from ci/travis_script_gandiva.shrename to ci/travis_script_gandiva_cpp.shdiff --git a/ci/travis_script_gandiva_java.sh b/ci/travis_script_gandiva_java.shnew file mode 100755index 0000000000..8c26e5c859--- /dev/null+++ b/ci/travis_script_gandiva_java.sh@@ -0,0 +1,35 @@+#!/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+JAVA_DIR=${TRAVIS_BUILD_DIR}/java++pushd $JAVA_DIR++export MAVEN_OPTS="$MAVEN_OPTS -Dorg.slf4j.simpleLogger.defaultLogLevel=warn"++# build with gandiva profile+mvn -P gandiva -B install -DskipTests -Dgandiva.cpp.build.dir=$CPP_BUILD_DIR++# run gandiva tests+mvn test -P gandiva -pl gandiva -Dgandiva.cpp.build.dir=$CPP_BUILD_DIR++popddiff --git a/ci/travis_script_java.sh b/ci/travis_script_java.shindex 9553dd52da..8a71fdc4d0 100755--- a/ci/travis_script_java.sh+++ b/ci/travis_script_java.sh@@ -20,7 +20,6 @@set -eJAVA_DIR=${TRAVIS_BUILD_DIR}/java-pushd $JAVA_DIRexport MAVEN_OPTS="$MAVEN_OPTS -Dorg.slf4j.simpleLogger.defaultLogLevel=warn"