]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
Run the Clang static analyzer test with Travis
authorAnders Björklund <anders@psqr.se>
Thu, 3 Nov 2016 20:22:51 +0000 (21:22 +0100)
committerJoel Rosdahl <joel@rosdahl.net>
Mon, 20 Feb 2017 21:35:33 +0000 (22:35 +0100)
Need to install the "clang" package, in order to get "scan-build".
Apparently the default binary (from llvm.org) doesn't include it ?

.travis.yml

index b86e21375f36c8f0fddab45eb234617fb6755609..9a70beb74c430b8ae8b72c9860efa01fa638c679 100644 (file)
@@ -3,10 +3,12 @@ language: c
 addons:
     apt:
         packages:
+            - gperf
             - elfutils
             - zlib1g-dev
             - mingw32
             - mingw32-binutils
+            - clang    # scan-build
 
 os:
     - linux
@@ -27,6 +29,9 @@ matrix:
         - os: linux
           compiler: clang
           env: CFLAGS="-fsanitize=address -g" ASAN_OPTIONS="detect_leaks=0"
+        - os: linux
+          compiler: /usr/bin/clang
+          env: TEST=analyze
 
     exclude:
         - os: osx