Skip to content

Commit

Permalink
CI: Add scan-build
Browse files Browse the repository at this point in the history
Run scan-build (clang-tools based) static analyzer on all build
variants.
  • Loading branch information
Chaitanya Tata committed Dec 31, 2020
1 parent 66e2668 commit b38e2a0
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,21 @@
language: cpp

addons:
apt:
packages:
# Need for scan-build
- clang-tools
matrix:
include:
- os: linux
compiler: gcc
- os: linux
compiler: clang
- os: osx

script:
- make -C tests EXTRA_CFLAGS="-W -Wall -Wextra"
- make -C tests clean ; make -C tests pedantic
- make -C tests clean ; make -C tests pedantic EXTRA_CFLAGS=-DNO_DECLTYPE
- make -C tests clean ; make -C tests cplusplus
- make -C tests clean ; make -C tests cplusplus EXTRA_CFLAGS=-DNO_DECLTYPE
- scan-build make -C tests EXTRA_CFLAGS="-W -Wall -Wextra"
- make -C tests clean ; scan-build make -C tests pedantic
- make -C tests clean ; scan-build make -C tests pedantic EXTRA_CFLAGS=-DNO_DECLTYPE
- make -C tests clean ; scan-build make -C tests cplusplus
- make -C tests clean ; scan-build make -C tests cplusplus EXTRA_CFLAGS=-DNO_DECLTYPE

0 comments on commit b38e2a0

Please sign in to comment.