Run code coverage tests without optimizations

This way the code coverage results also include code paths that are
optimized out by the compiler at higher optimization levels.
This commit is contained in:
Nikos Tsipinakis 2018-03-09 18:18:05 +02:00
parent 533f47f4c6
commit 1831e9d015

View File

@ -23,7 +23,9 @@ before_install:
- pip install --user cpp-coveralls - pip install --user cpp-coveralls
script: script:
- CFLAGS="-fprofile-arcs -ftest-coverage -Werror" make all dunstify test-valgrind doc-doxygen - CFLAGS="-Werror" make all dunstify test-valgrind doc-doxygen
- make clean
- CFLAGS="-Werror -fprofile-arcs -ftest-coverage -O0" make test
matrix: matrix:
include: include: