aboutsummaryrefslogtreecommitdiff
path: root/tests/travis/build-and-test
diff options
context:
space:
mode:
Diffstat (limited to 'tests/travis/build-and-test')
-rwxr-xr-xtests/travis/build-and-test10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/travis/build-and-test b/tests/travis/build-and-test
index 64957ba6..f07ea2ba 100755
--- a/tests/travis/build-and-test
+++ b/tests/travis/build-and-test
@@ -15,9 +15,19 @@ case "$CONFIG" in
;;
esac
+# build with code coverage
+if [ "$CONFIG" = "full-debug" ]; then
+ export CXXFLAGS="-fprofile-arcs -ftest-coverage"
+fi
+
# compile
cmake $CMAKE_ARGS
make
# run tests
make test
+
+# upload coverage report
+if [ "$CONFIG" = "full-debug" ]; then
+ coveralls --exclude-pattern '.*autogen.*' --include src
+fi