+sudo: required
+dist: trusty
language: c
compiler:
- gcc
addons:
# See http://docs.travis-ci.com/user/apt/
apt:
- sources:
- - llvm-toolchain-precise-3.5
- # ubuntu-toolchain-r-test contains libstdc++6 >= 4.8 which libllvm3.5 needs.
- - ubuntu-toolchain-r-test
packages:
- libconfuse-dev
- libyajl-dev
script:
- make -j
- clang-format-3.5 -i $(find . -name "*.[ch]" | tr '\n' ' ') && git diff --exit-code || (echo 'Code was not formatted using clang-format!'; false)
+ - ./travis/run-tests.pl