Ignore experimental files in coverage

This commit is contained in:
Vinnie Falco
2018-11-26 17:57:03 -08:00
parent 8930d437b5
commit 0a38da5b7a

View File

@@ -134,9 +134,10 @@ if [[ $VARIANT == "coverage" ]]; then
lcov --no-external -c -i -d "$BOOST_ROOT" -o baseline.info > /dev/null lcov --no-external -c -i -d "$BOOST_ROOT" -o baseline.info > /dev/null
run_tests "$BIN_DIR" fat-tests run_tests "$BIN_DIR" fat-tests
# https://bugs.launchpad.net/ubuntu/+source/lcov/+bug/1163758 # https://bugs.launchpad.net/ubuntu/+source/lcov/+bug/1163758
lcov --no-external -c -d "$BOOST_ROOT" -o testrun.info > /dev/null 2>&1 lcov --no-external -c -d "$BOOST_ROOT" -o testrun-all.info > /dev/null 2>&1
lcov -a baseline.info -a testrun.info -o lcov-all.info > /dev/null lcov --remove "testrun-all.info" "$INC_DIR/_experimental/\*" -o testrun.info > /dev/null
lcov -e "lcov-all.info" "$INC_DIR/*" -o lcov.info > /dev/null lcov -a baseline.info -a testrun.info -o lcov-diff.info > /dev/null
lcov -e "lcov-diff.info" "$INC_DIR/*" -o lcov.info > /dev/null
~/.local/bin/codecov -X gcov -f lcov.info ~/.local/bin/codecov -X gcov -f lcov.info
find "$BOOST_ROOT" -name "*.gcda" | xargs rm -f find "$BOOST_ROOT" -name "*.gcda" | xargs rm -f