From 1831e9d0153dbfc622252ff117fbf92c7b8583f2 Mon Sep 17 00:00:00 2001 From: Nikos Tsipinakis Date: Fri, 9 Mar 2018 18:18:05 +0200 Subject: [PATCH] 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. --- .travis.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 722d2d8..7f31313 100644 --- a/.travis.yml +++ b/.travis.yml @@ -23,7 +23,9 @@ before_install: - pip install --user cpp-coveralls 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: include: