From 55479c960c162789fef157580748d2bd37a60f10 Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Sun, 31 Dec 2017 20:26:24 +0100 Subject: [PATCH] break up the cppcheck tests, they time out on travis --- s/travis-build | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/s/travis-build b/s/travis-build index 9ef0fbdd5..1f25af51d 100755 --- a/s/travis-build +++ b/s/travis-build @@ -16,11 +16,23 @@ cd tests ./run-turn.sh } +cppcheck_tests() { + cppcheck --version + DIRS="util kernel modules races attributes triggers items tools spells" + IGNORE="" + for DIR in $DIRS ; do + IGNORE="$IGNORE -i src/$DIR" + echo "cppcheck src/$DIR" + cppcheck --quiet -Isrc -Iclibs -Istorage -IcJSON --error-exitcode=1 "src/$DIR" + done + echo "cppcheck src" + cppcheck --quiet -Isrc -Iclibs -Istorage -IcJSON --error-exitcode=1 $IGNORE src +} + set -e [ -z $BUILD ] && BUILD=Debug ; export BUILD s/cmake-init -cppcheck --version -cppcheck --quiet -Isrc -Iclibs -Istorage -IcJSON --error-exitcode=1 src +cppcheck_tests s/build cd process make