travis: invoke make with -s (silent) parameter to reduce stdout.

This commit is contained in:
Matthias Krüger 2017-06-06 22:54:16 +02:00
parent dee605ae59
commit cc4ea59b4a
1 changed files with 17 additions and 9 deletions

View File

@ -39,14 +39,17 @@ script:
- if [[ "$CHECK_LLVM" == "yes" ]] && [[ "$CC" == "clang" ]]; then wget "https://github.com/llvm-mirror/llvm/archive/7733e74e5454d6f18da28c06be917c1e73d12d01.zip" & make -j 4 & wait; unzip 7733e74e5454d6f18da28c06be917c1e73d12d01.zip > /dev/null; touch /tmp/llvm.cppcheck; cd ./llvm-7733e74e5454d6f18da28c06be917c1e73d12d01 ; ../cppcheck . --max-configs=1 --enable=all --inconclusive --exception-handling --template="{callstack} ({severity}) {message} [{id}]" -j 2 |& tee /tmp/llvm.cppcheck; cd ../ ; echo "LLVM" ; ! grep "process crashed with signal\|Internal error\. compiled" /tmp/llvm.cppcheck; exit; fi
# check with TEST_MATHLIB_VALUE enabled
- touch lib/mathlib.cpp test/testmathlib.cpp
- make test -j4 CPPFLAGS=-DTEST_MATHLIB_VALUE
- echo $CXXFLAGS
- make -s test -j4 CPPFLAGS=-DTEST_MATHLIB_VALUE
- touch lib/mathlib.cpp test/testmathlib.cpp
# compile cppcheck, default build
- make test -j4
- echo $CXXFLAGS
- make -s test -j4
# compile gui
- cd gui
- qmake
- make -j4
- echo $CXXFLAGS
- make -s -j4
# building gui generates some more files that cppcheck can check, so check the repo *after* building gui
- cd ../
# use same hack as for clang to work around cppchecks broken exit status with -j 2 ; create file, tee everything to the file and stdout, grep for errors in the file
@ -64,7 +67,8 @@ script:
- git clean -dfx .
# can't set this as env flags, so try again with HAVE_RULES=yes
- qmake HAVE_RULES=yes
- make -j4
- echo $CXXFLAGS
- make -s -j4
- cd ../
# check htmlreport stuff
- ./htmlreport/test_htmlreport.py
@ -73,18 +77,21 @@ script:
- cd ../
# check if DESTDIR works TODO: actually execute this
- mkdir install_test
- make DESTDIR=install_test install
- echo $CXXFLAGS
- make -s DESTDIR=install_test install
# rm everything
- git clean -dfx
# check what happens if we want to install it to some other dir,
- make SRCDIR=build CFGDIR=/usr/share/cppcheck/cfg -j 4
- echo $CXXFLAGS
- make -s SRCDIR=build CFGDIR=/usr/share/cppcheck/cfg -j 4
- sudo make SRCDIR=build CFGDIR=/usr/share/cppcheck/cfg install
- sudo mkdir -p /usr/share/cppcheck/cfg
- sudo install -D ./cfg/* -t /usr/share/cppcheck/cfg
# check if it actually works:
- /usr/bin/cppcheck ./cli
# check if reduce tool compiles
- make reduce -j 4
- echo $CXXFLAGS
- make -s reduce -j 4
# check if showtime=top5 works
- ./tools/test_showtimetop5.sh
# check the files in cgf dir with xmllint
@ -99,8 +106,9 @@ script:
- python addons/misra.py -verify addons/misra-test.c.dump
# check if Makefile needs to be regenerated
- git clean -dfx
- make dmake
- make run-dmake
- echo $CXXFLAGS
- make -s dmake
- make -s run-dmake
# now, if dmake modified the makefile, return false!
- git diff --exit-code