diff options
Diffstat (limited to '.travis.yml')
-rw-r--r-- | .travis.yml | 4 |
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 .. |