Apache DataFusion SQL Query Engine
ARROW-1135: [C++] Use clang 4.0 in one of the Linux builds
Wes McKinney4c043e4199f2
diff --git a/.travis.yml b/.travis.ymlindex 315cbd21f2..ff2cafede9 100644--- a/.travis.yml+++ b/.travis.yml@@ -85,8 +85,9 @@ matrix:env: ARROW_TEST_GROUP=integrationjdk: openjdk7before_script:- - export CC="gcc-4.9"- - export CXX="g++-4.9"+ - source $TRAVIS_BUILD_DIR/ci/travis_install_clang_tools.sh+ - export CC="clang-4.0"+ - export CXX="clang++-4.0"- $TRAVIS_BUILD_DIR/ci/travis_before_script_cpp.shscript:- $TRAVIS_BUILD_DIR/ci/travis_script_integration.sh@@ -122,11 +123,6 @@ matrix:before_install:- ulimit -c unlimited -S-- export CPP_BUILD_DIR=$TRAVIS_BUILD_DIR/cpp-build-- export ARROW_CPP_INSTALL=$TRAVIS_BUILD_DIR/cpp-install--after_script:-- rm -rf $CPP_BUILD_DIRafter_failure:- COREFILE=$(find . -maxdepth 2 -name "core*" | head -n 1)diff --git a/ci/travis_before_script_cpp.sh b/ci/travis_before_script_cpp.shindex 3a1836ca3a..36966da32f 100755--- a/ci/travis_before_script_cpp.sh+++ b/ci/travis_before_script_cpp.sh@@ -64,7 +64,7 @@ fiif [ $TRAVIS_OS_NAME == "linux" ]; thencmake $CMAKE_COMMON_FLAGS \$CMAKE_LINUX_FLAGS \- -DARROW_CXXFLAGS="-Wconversion -Werror" \+ -DARROW_CXXFLAGS="-Wconversion -Wno-sign-conversion -Werror" \$ARROW_CPP_DIRelsecmake $CMAKE_COMMON_FLAGS \diff --git a/ci/travis_env_common.sh b/ci/travis_env_common.shindex 9ded3e07e7..a2e591014c 100755--- a/ci/travis_env_common.sh+++ b/ci/travis_env_common.sh@@ -23,6 +23,8 @@ export ARROW_JAVA_DIR=${TRAVIS_BUILD_DIR}/javaexport ARROW_JS_DIR=${TRAVIS_BUILD_DIR}/jsexport ARROW_INTEGRATION_DIR=$TRAVIS_BUILD_DIR/integration+export CPP_BUILD_DIR=$TRAVIS_BUILD_DIR/cpp-build+export ARROW_CPP_INSTALL=$TRAVIS_BUILD_DIR/cpp-installexport ARROW_CPP_BUILD_DIR=$TRAVIS_BUILD_DIR/cpp-buildexport ARROW_C_GLIB_INSTALL=$TRAVIS_BUILD_DIR/c-glib-installdiff --git a/ci/travis_install_clang_tools.sh b/ci/travis_install_clang_tools.shnew file mode 100644index 0000000000..a4fd0e2461--- /dev/null+++ b/ci/travis_install_clang_tools.sh@@ -0,0 +1,19 @@+#!/usr/bin/env bash++# Licensed 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. See accompanying LICENSE file.++wget -O - http://llvm.org/apt/llvm-snapshot.gpg.key|sudo apt-key add -+sudo apt-add-repository -y \+ "deb http://llvm.org/apt/trusty/ llvm-toolchain-trusty-4.0 main"+sudo apt-get update+sudo apt-get install clang-4.0 clang-format-4.0 clang-tidy-4.0