Skip to content

Commit b38e2a0

Browse files
author
Chaitanya Tata
committed
CI: Add scan-build
Run scan-build (clang-tools based) static analyzer on all build variants.
1 parent 66e2668 commit b38e2a0

File tree

1 file changed

+12
-5
lines changed

1 file changed

+12
-5
lines changed

.travis.yml

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,21 @@
11
language: cpp
2+
3+
addons:
4+
apt:
5+
packages:
6+
# Need for scan-build
7+
- clang-tools
28
matrix:
39
include:
410
- os: linux
511
compiler: gcc
612
- os: linux
713
compiler: clang
814
- os: osx
15+
916
script:
10-
- make -C tests EXTRA_CFLAGS="-W -Wall -Wextra"
11-
- make -C tests clean ; make -C tests pedantic
12-
- make -C tests clean ; make -C tests pedantic EXTRA_CFLAGS=-DNO_DECLTYPE
13-
- make -C tests clean ; make -C tests cplusplus
14-
- make -C tests clean ; make -C tests cplusplus EXTRA_CFLAGS=-DNO_DECLTYPE
17+
- scan-build make -C tests EXTRA_CFLAGS="-W -Wall -Wextra"
18+
- make -C tests clean ; scan-build make -C tests pedantic
19+
- make -C tests clean ; scan-build make -C tests pedantic EXTRA_CFLAGS=-DNO_DECLTYPE
20+
- make -C tests clean ; scan-build make -C tests cplusplus
21+
- make -C tests clean ; scan-build make -C tests cplusplus EXTRA_CFLAGS=-DNO_DECLTYPE

0 commit comments

Comments
 (0)