-
Notifications
You must be signed in to change notification settings - Fork 4
/
.travis.yml
21 lines (18 loc) · 1.09 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
dist: bionic
language:
- c
jobs:
include:
- stage: Cppcheck
script: git clone --branch 2.2 https://github.com/danmar/cppcheck.git && make -j8 -C cppcheck && cd src && ../cppcheck/cppcheck --max-ctu-depth=4096 --enable=all --error-exitcode=1 --suppress=missingInclude --suppress=unusedFunction --suppress=knownConditionTrueFalse --suppress=unmatchedSuppression -U__clang_analyzer__ -UFAIL_FILE_ADDR -UFAIL_FILE_ALLOC -UFAIL_FILE_FOPEN -UFAIL_FILE_DOPEN -UFAIL_FILE_ZERO -UFAIL_LINE_ADDR -UFAIL_LINE_ALLOC -UFAIL_LINE_FOPEN -UFAIL_LINE_DOPEN -UFAIL_LINE_ZERO .
- stage: Clang scan-build
script: make -C build clean && scan-build -v -maxloop 1024 -enable-checker alpha -enable-checker nullability -enable-checker security -disable-checker alpha.deadcode make -C build
- stage: Test
script: make -j8 -C build smoke || (cat build/err.tmp.* 2> /dev/null && false)
- stage: Valgrind
script: make -j8 -C build quick || (cat build/err.tmp.* build/leak.tmp.* 2> /dev/null && false)
addons:
apt:
packages:
- valgrind
- clang-tools