aboutsummaryrefslogtreecommitdiffstats
path: root/.travis.yml
diff options
context:
space:
mode:
authorGravatar Arun Prakash Jana <engineerarun@gmail.com>2018-11-03 13:50:03 +0530
committerGravatar Arun Prakash Jana <engineerarun@gmail.com>2018-11-03 15:49:26 +0530
commit65f26d0f5da4e4898dca41f57821b6906f48c305 (patch)
treea4f6361865c078a5a47572ead04cf92fe075013e /.travis.yml
parentadbc7ad090a5d8b34b18e2f25fdddb1e95c574c4 (diff)
downloadnnn-65f26d0f5da4e4898dca41f57821b6906f48c305.tar.gz
Integrate clang-tidy
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml4
1 files changed, 4 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml
index 13f85f2..31c2dc0 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -20,10 +20,14 @@ matrix:
- os: osx
compiler: clang
+install:
+ - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then if [[ "$CC" == "clang" ]]; then brew update; brew install llvm; export PATH="/usr/local/opt/llvm/bin:$PATH"; fi; fi
+
script:
- export CFLAGS=-Werror;
- make clean; make;
- make clean;
+ - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then if [[ "$CC" == "clang" ]]; then clang-tidy *.h *.c -- -I/usr/include; fi; fi
before_deploy:
- cd ..