1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-23 16:48:49 -05:00

travis: add scan-build

Closes #3564
This commit is contained in:
Daniel Stenberg 2017-11-20 23:31:05 +01:00
parent 5341c65667
commit 8ae3db510b
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View 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: