Skip to content

Commit 7923244

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 7923244

File tree

1 file changed

+13
-5
lines changed

1 file changed

+13
-5
lines changed

.travis.yml

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,22 @@
11
language: cpp
2+
3+
addons:
4+
apt:
5+
packages:
6+
# Need for scan-build
7+
- clang-tools
8+
- clang-tools-6.0
29
matrix:
310
include:
411
- os: linux
512
compiler: gcc
613
- os: linux
714
compiler: clang
815
- os: osx
16+
917
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
18+
- scan-build make -C tests EXTRA_CFLAGS="-W -Wall -Wextra"
19+
- make -C tests clean ; scan-build make -C tests pedantic
20+
- make -C tests clean ; scan-build make -C tests pedantic EXTRA_CFLAGS=-DNO_DECLTYPE
21+
- make -C tests clean ; scan-build make -C tests cplusplus
22+
- make -C tests clean ; scan-build make -C tests cplusplus EXTRA_CFLAGS=-DNO_DECLTYPE

0 commit comments

Comments
 (0)