From 5b5cb63a644e28c8ab7c66e3772791b2bea60dc3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Wed, 14 Oct 2015 10:50:53 +0200 Subject: [PATCH] Travis: Start to run some tests with the CPPCHECK2 define --- .travis.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index abd0d36bf..66ad492e4 100644 --- a/.travis.yml +++ b/.travis.yml @@ -32,9 +32,15 @@ script: # download clang git, compile cppcheck, run cppcheck on clang code to look for crashes in cppcheck. if this is done, terminate build - if [[ "$CHECK_CLANG" == "yes" ]] && [[ "$CC" == "gcc" ]]; then wget "https://github.com/llvm-mirror/clang/archive/817ee21333dffb3c77ef845aa1a9f8d1dc94a842.zip" & make -j 4 & wait; unzip 817ee21333dffb3c77ef845aa1a9f8d1dc94a842.zip > /dev/null; touch /tmp/clang.cppcheck; cd ./clang-817ee21333dffb3c77ef845aa1a9f8d1dc94a842 ; ../cppcheck . --max-configs=1 --enable=all --inconclusive --exception-handling -iINPUTS -j 2 |& tee /tmp/clang.cppcheck; cd ../ ; ! grep "process crashed with signal\|Internal error\. compiled" /tmp/clang.cppcheck; exit; fi # check with TEST_MATHLIB_VALUE enabled - - make test -j4 CPPFLAGS=-DTEST_MATHLIB_VALUE -# compile cppcheck, default build - touch lib/mathlib.cpp test/testmathlib.cpp + - make test -j4 CPPFLAGS=-DTEST_MATHLIB_VALUE + - touch lib/mathlib.cpp test/testmathlib.cpp +# check with CPPCHECK2 enabled that disables various simplifications + - touch lib/tokenize.cpp + - make testrunner -j4 CPPFLAGS=-DCPPCHECK2 + - ./testrunner TestValueFlow + - touch lib/tokenize.cpp +# compile cppcheck, default build - make test -j4 # compile gui - cd gui