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 e923627
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,23 @@
language: cpp

addons:
apt:
packages:
# Need for scan-build
- clang-tools
matrix:
include:
- os: linux
dist: bionic
compiler: gcc
- os: linux
dist: bionic
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 e923627

Please sign in to comment.