From 65f26d0f5da4e4898dca41f57821b6906f48c305 Mon Sep 17 00:00:00 2001 From: Arun Prakash Jana Date: Sat, 3 Nov 2018 13:50:03 +0530 Subject: Integrate clang-tidy --- .travis.yml | 4 ++++ 1 file changed, 4 insertions(+) (limited to '.travis.yml') 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 .. -- cgit v1.2.3-70-g09d2