From abccd9af955826f465d806bc4527f79fbc31429e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Kr=C3=BCger?= Date: Sat, 23 Jan 2016 12:29:56 +0100 Subject: [PATCH] travis: check llvm too, for greater coverage --- .travis.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index a6a3e08e3..620543516 100644 --- a/.travis.yml +++ b/.travis.yml @@ -30,7 +30,9 @@ before_install: 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/c2ca783d8b070d01b8d30b6c1d447563a6412af5.zip" & make -j 4 & wait; unzip c2ca783d8b070d01b8d30b6c1d447563a6412af5.zip > /dev/null; touch /tmp/clang.cppcheck; cd ./clang-c2ca783d8b070d01b8d30b6c1d447563a6412af5 ; ../cppcheck . --max-configs=1 --enable=all --inconclusive --exception-handling -iINPUTS -itest/Driver/Inputs/gen-response.c -j 2 |& tee /tmp/clang.cppcheck; cd ../ ; ! grep "process crashed with signal\|Internal error\. compiled" /tmp/clang.cppcheck; exit; fi + - if [[ "$CHECK_CLANG" == "yes" ]] && [[ "$CC" == "gcc" ]]; then wget "https://github.com/llvm-mirror/clang/archive/c2ca783d8b070d01b8d30b6c1d447563a6412af5.zip" & make -j 4 & wait; unzip c2ca783d8b070d01b8d30b6c1d447563a6412af5.zip > /dev/null; touch /tmp/clang.cppcheck; cd ./clang-c2ca783d8b070d01b8d30b6c1d447563a6412af5 ; ../cppcheck . --max-configs=1 --enable=all --inconclusive --exception-handling -iINPUTS -itest/Driver/Inputs/gen-response.c -j 2 |& tee /tmp/clang.cppcheck; cd ../; fi +# check llvm as well + - if [[ "$CHECK_CLANG" == "yes" ]] && [[ "$CC" == "gcc" ]]; then wget "https://github.com/llvm-mirror/llvm/archive/1de675f473fb5c392d06e03cec4e8ee621e544ae.zip"; unzip 1de675f473fb5c392d06e03cec4e8ee621e544ae.zip > /dev/null; touch /tmp/llvm.cppcheck; cd ./llvm-1de675f473fb5c392d06e03cec4e8ee621e544ae ; ../cppcheck . --max-configs=1 --enable=all --inconclusive --exception-handling -j 2 |& tee /tmp/llvm.cppcheck; cd ../ ; echo "LLVM " ; ! grep "process crashed with signal\|Internal error\. compiled" /tmp/llvm.cppcheck; echo "CLANG " ; ! grep "process crashed with signal\|Internal error\. compiled" /tmp/clang.cppcheck; exit; fi # check with TEST_MATHLIB_VALUE enabled - touch lib/mathlib.cpp test/testmathlib.cpp - make test -j4 CPPFLAGS=-DTEST_MATHLIB_VALUE