Skip to content

Commit eae51c1

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 eae51c1

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

.travis.yml

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,20 @@
11
language: cpp
2+
3+
addons:
4+
apt:
5+
packages:
6+
- clang-tools
27
matrix:
38
include:
49
- os: linux
510
compiler: gcc
611
- os: linux
712
compiler: clang
813
- os: osx
14+
915
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
16+
- scan-build make -C tests EXTRA_CFLAGS="-W -Wall -Wextra"
17+
- make -C tests clean ; scan-build make -C tests pedantic
18+
- make -C tests clean ; scan-build make -C tests pedantic EXTRA_CFLAGS=-DNO_DECLTYPE
19+
- make -C tests clean ; scan-build make -C tests cplusplus
20+
- make -C tests clean ; scan-build make -C tests cplusplus EXTRA_CFLAGS=-DNO_DECLTYPE

0 commit comments

Comments
 (0)