summaryrefslogtreecommitdiff
path: root/.travis.yml
diff options
context:
space:
mode:
authorIvan Maidanski <ivmai@mail.ru>2018-12-29 00:50:34 +0300
committerIvan Maidanski <ivmai@mail.ru>2018-12-29 01:10:49 +0300
commite3d3b3becf6d1f9ce90b9a06b88003ef413f2464 (patch)
tree9347d41a386ab8f34ba71ea7ecc448231c99440b /.travis.yml
parentd2eae963091ddb2591f4fddfdbb8c922ff2c5220 (diff)
downloadbdwgc-e3d3b3becf6d1f9ce90b9a06b88003ef413f2464.tar.gz
Travis CI: Workaround timeout of 'cppcheck --enable=unusedFunction --force'
"cppcheck --enable=unusedFunction --force extra/gc.c" takes longer than the Travis CI timeout (50m), so gc.c is checked for unused functions without --force option for now.
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml11
1 files changed, 7 insertions, 4 deletions
diff --git a/.travis.yml b/.travis.yml
index 347133aa..76b2b083 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -39,15 +39,18 @@ matrix:
- MAKEFILE_TARGETS="dist"
- os: linux
env:
- - CPPCHECK_ENABLE="--enable=unusedFunction -D GC_BUILTIN_ATOMIC extra/gc.c *.cc cord/*.c cord/tests/*.c tests/*.c tests/*.cc"
+ - CPPCHECK_ENABLE="--enable=unusedFunction --quiet -I libatomic_ops/src extra/gc.c tests/*.c"
+ - os: linux
+ env:
+ - CPPCHECK_ENABLE="--enable=unusedFunction --force -D GC_BUILTIN_ATOMIC *.cc cord/*.c cord/tests/*.c tests/*.c tests/*.cc"
- CPPCHECK_OUT_FILTER="Z"
- NO_CLONE_LIBATOMIC_OPS=true
- os: linux
env:
- - CPPCHECK_ENABLE="-j4 --enable=information,performance,portability,style,warning -U GC_PRIVATE_H -I libatomic_ops/src *.c"
+ - CPPCHECK_ENABLE="-j4 --enable=information,performance,portability,style,warning --force -U GC_PRIVATE_H -I libatomic_ops/src *.c"
- os: linux
env:
- - CPPCHECK_ENABLE="-j4 --enable=information,performance,portability,style,warning -U GC_PRIVATE_H -I libatomic_ops/src *.cc cord/*.c cord/tests/*.c extra/AmigaOS.c extra/MacOS.c extra/msvc_dbg.c extra/real_malloc.c extra/symbian.cpp tests/*.c tests/*.cc tools/*.c"
+ - CPPCHECK_ENABLE="-j4 --enable=information,performance,portability,style,warning --force -U GC_PRIVATE_H -I libatomic_ops/src *.cc cord/*.c cord/tests/*.c extra/AmigaOS.c extra/MacOS.c extra/msvc_dbg.c extra/real_malloc.c extra/symbian.cpp tests/*.c tests/*.cc tools/*.c"
- os: linux
compiler: gcc
env:
@@ -624,7 +627,7 @@ script:
fi
- if [[ "$CPPCHECK_ENABLE" != "" ]]; then
if [[ "$CPPCHECK_OUT_FILTER" == "" ]]; then CPPCHECK_OUT_FILTER="c "; fi;
- set -o pipefail; ~/cppcheck/cppcheck --force --error-exitcode=2
+ set -o pipefail; ~/cppcheck/cppcheck --error-exitcode=2
-U GC_API -D CPPCHECK -I include $CPPCHECK_ENABLE |
grep --line-buffered "$CPPCHECK_OUT_FILTER";
fi