ci: Switch to lcov to build HTML coverage reports
Change-Id: Ic057e2fdfe1bcb52448bf7d25b84a196f25ccf7e
diff --git a/.jenkins.d/30-coverage.sh b/.jenkins.d/30-coverage.sh
index 19f014c..5e89f07 100755
--- a/.jenkins.d/30-coverage.sh
+++ b/.jenkins.d/30-coverage.sh
@@ -13,12 +13,8 @@
--root=. \
--xml
- # Generate also a detailed HTML output
- mkdir build/coverage
- gcovr --object-directory=build \
- --output=build/coverage/index.html \
- --exclude="$PWD/(tests)" \
- --root=. \
- --html \
- --html-details
+ # # Generate also a detailed HTML output, but using lcov (slower, but better results)
+ lcov -q -c -d . --no-external -o build/coverage-with-tests.info
+ lcov -q -r build/coverage-with-tests.info "$PWD/tests/*" -o build/coverage.info
+ genhtml build/coverage.info --output-directory build/coverage --legend
fi