Travis: make logs less noisy (#2488)
* Travis: Run tests in quiet mode Also, add -s flag to a few more make commands to make compilation silent too. * Travis: Enable tests on osx and trusty
This commit is contained in:
parent
668212ac2f
commit
c29f9eaf44
20
.travis.yml
20
.travis.yml
|
@ -51,17 +51,17 @@ matrix:
|
||||||
- name: "undefined behaviour sanitizers"
|
- name: "undefined behaviour sanitizers"
|
||||||
compiler: gcc
|
compiler: gcc
|
||||||
script:
|
script:
|
||||||
- CXXFLAGS="-fsanitize=undefined -fno-sanitize-recover=all -Og -g3" make cppcheck test checkcfg -j 2
|
- CXXFLAGS="-fsanitize=undefined -fno-sanitize-recover=all -Og -g3" make cppcheck check checkcfg -j 2 -s
|
||||||
# -fsanitize=address
|
# -fsanitize=address
|
||||||
- name: "address sanitizers"
|
- name: "address sanitizers"
|
||||||
compiler: gcc
|
compiler: gcc
|
||||||
script:
|
script:
|
||||||
- CXXFLAGS="-fsanitize=address -Og -g3" make cppcheck test checkcfg -j 2
|
- CXXFLAGS="-fsanitize=address -Og -g3" make cppcheck check checkcfg -j 2 -s
|
||||||
# check a lot of stuff that only needs to be checked in a single configuration
|
# check a lot of stuff that only needs to be checked in a single configuration
|
||||||
- name: "misc"
|
- name: "misc"
|
||||||
compiler: clang
|
compiler: clang
|
||||||
script:
|
script:
|
||||||
- make -j 2
|
- make -j 2 -s
|
||||||
# run extra tests
|
# run extra tests
|
||||||
- tools/generate_and_run_more_tests.sh
|
- tools/generate_and_run_more_tests.sh
|
||||||
# check for missing CWE entries
|
# check for missing CWE entries
|
||||||
|
@ -183,18 +183,18 @@ matrix:
|
||||||
- travis_retry sudo apt-get update -qq
|
- travis_retry sudo apt-get update -qq
|
||||||
- travis_retry sudo apt-get install libxml2-utils libpcre3
|
- travis_retry sudo apt-get install libxml2-utils libpcre3
|
||||||
script:
|
script:
|
||||||
- CXX=g++ CXXFLAGS="${ORIGINAL_CXXFLAGS}" make cppcheck testrunner -j 2
|
- CXX=g++ CXXFLAGS="${ORIGINAL_CXXFLAGS}" make cppcheck check -j 2 -s
|
||||||
- make clean
|
- make clean
|
||||||
- CXX=clang++ CXXFLAGS="${ORIGINAL_CXXFLAGS}" make cppcheck testrunner -j 2
|
- CXX=clang++ CXXFLAGS="${ORIGINAL_CXXFLAGS}" make cppcheck check -j 2 -s
|
||||||
# check if cppcheck builds on osx
|
# check if cppcheck builds on osx
|
||||||
- name: "make osx"
|
- name: "make osx"
|
||||||
os: osx
|
os: osx
|
||||||
before_install:
|
before_install:
|
||||||
- true
|
- true
|
||||||
script:
|
script:
|
||||||
- CXX=g++ CXXFLAGS="${ORIGINAL_CXXFLAGS}" make cppcheck testrunner -j 2
|
- CXX=g++ CXXFLAGS="${ORIGINAL_CXXFLAGS}" make cppcheck check -j 2 -s
|
||||||
- make clean
|
- make clean
|
||||||
- CXX=clang++ CXXFLAGS="${ORIGINAL_CXXFLAGS}" make cppcheck testrunner -j 2
|
- CXX=clang++ CXXFLAGS="${ORIGINAL_CXXFLAGS}" make cppcheck check -j 2 -s
|
||||||
|
|
||||||
script:
|
script:
|
||||||
# fail the entire job as soon as one of the subcommands exits non-zero to save time and resources
|
# fail the entire job as soon as one of the subcommands exits non-zero to save time and resources
|
||||||
|
@ -204,13 +204,13 @@ script:
|
||||||
# check with TEST_MATHLIB_VALUE enabled
|
# check with TEST_MATHLIB_VALUE enabled
|
||||||
- touch lib/mathlib.cpp test/testmathlib.cpp
|
- touch lib/mathlib.cpp test/testmathlib.cpp
|
||||||
- echo $CXXFLAGS
|
- echo $CXXFLAGS
|
||||||
- make -s test -j2 CPPFLAGS=-DTEST_MATHLIB_VALUE
|
- make -s check -j2 CPPFLAGS=-DTEST_MATHLIB_VALUE
|
||||||
- touch lib/mathlib.cpp test/testmathlib.cpp
|
- touch lib/mathlib.cpp test/testmathlib.cpp
|
||||||
# syntax checking of cppcheck source code with -DNONNEG
|
# syntax checking of cppcheck source code with -DNONNEG
|
||||||
- ls lib/*.cpp | xargs -n 1 -P 2 g++ -fsyntax-only -std=c++0x -Ilib -Iexternals -Iexternals/simplecpp -Iexternals/tinyxml -DNONNEG
|
- ls lib/*.cpp | xargs -n 1 -P 2 g++ -fsyntax-only -std=c++0x -Ilib -Iexternals -Iexternals/simplecpp -Iexternals/tinyxml -DNONNEG
|
||||||
# compile cppcheck, default build
|
# compile cppcheck, default build
|
||||||
- echo $CXXFLAGS
|
- echo $CXXFLAGS
|
||||||
- make -s test -j2
|
- make -s check -j2
|
||||||
# compile gui
|
# compile gui
|
||||||
- cd gui
|
- cd gui
|
||||||
- qmake
|
- qmake
|
||||||
|
@ -237,7 +237,7 @@ script:
|
||||||
- cd ../
|
- cd ../
|
||||||
# Build gui/test
|
# Build gui/test
|
||||||
- cd gui/test/projectfile
|
- cd gui/test/projectfile
|
||||||
- qmake && make && ./test-projectfile
|
- qmake && make -s -j2 && ./test-projectfile
|
||||||
- cd -
|
- cd -
|
||||||
# Build triage
|
# Build triage
|
||||||
- cd ./tools/triage
|
- cd ./tools/triage
|
||||||
|
|
Loading…
Reference in New Issue