]> granicus.if.org Git - curl/commitdiff
travis: add scan-build
authorDaniel Stenberg <daniel@haxx.se>
Mon, 20 Nov 2017 22:31:05 +0000 (23:31 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 14 Feb 2019 22:30:44 +0000 (23:30 +0100)
Closes #3564

.travis.yml

index d49d8f13ab728c955137287b5cc77e12ebc9123d..a0a7c701266be2e4f81492bddc7dd36a3f30b07c 100644 (file)
@@ -146,6 +146,10 @@ matrix:
           compiler: clang
           dist: trusty
           env: T=tidy
+        - os: linux
+          compiler: clang
+          dist: trusty
+          env: T=scan-build
         - os: linux
           compiler: clang
           dist: trusty
@@ -404,6 +408,11 @@ script:
           ./mainline.sh ${CURLSRC}
           popd
         fi
+    - |
+        if [ "$T" = "scan-build" ]; then
+             scan-build ./configure --enable-debug --enable-werror $C
+             scan-build --status-bugs make && scan-build --status-bugs make examples
+        fi
 
 # whitelist branches to avoid testing feature branches twice (as branch and as pull request)
 branches: