From 8ae3db510bc0a80b2baa9b36a9e436dd728c3bbb Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Mon, 20 Nov 2017 23:31:05 +0100 Subject: travis: add scan-build Closes #3564 --- .travis.yml | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to '.travis.yml') diff --git a/.travis.yml b/.travis.yml index d49d8f13a..a0a7c7012 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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: -- cgit v1.2.3