Skip to content

Apache DataFusion SQL Query Engine

ARROW-71: [C++] Add clang-tidy and clang-format to the the tool chain.

Micah Kornfield87926f7873fc
diff --git a/.travis.yml b/.travis.yml
index d89a200b89..a0138a7959 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,11 +1,14 @@
sudo: required
-dist: trusty
+dist: precise
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- kalakris-cmake
+ - llvm-toolchain-precise-3.7
packages:
+ - clang-format-3.7
+ - clang-tidy-3.7
- gcc-4.9 # Needed for C++11
- g++-4.9 # Needed for C++11
- gdb
diff --git a/ci/travis_script_cpp.sh b/ci/travis_script_cpp.sh
index 997bdf35e8..c9b3b5f144 100755
--- a/ci/travis_script_cpp.sh
+++ b/ci/travis_script_cpp.sh
@@ -7,6 +7,10 @@ set -e
pushd $CPP_BUILD_DIR
make lint
+if [ $TRAVIS_OS_NAME == "linux" ]; then
+ make check-format
+ make check-clang-tidy
+fi
ctest -L unittest