Skip to content

Commit

Permalink
Improve handling of lcov 2.1 (#231)
Browse files Browse the repository at this point in the history
  • Loading branch information
sdarwin authored May 13, 2024
1 parent 7198fc3 commit 9afe200
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ci/codecov.sh
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ elif [[ "$1" == "upload" ]]; then
: ${LCOV_VERSION:=v1.15}

if [[ "$LCOV_VERSION" =~ ^v[2-9] ]]; then
sudo apt-get install -y libcapture-tiny-perl libdatetime-perl || true
LCOV_OPTIONS="${LCOV_OPTIONS} --ignore-errors unused"
LCOV_OPTIONS=$(echo ${LCOV_OPTIONS} | xargs echo)
fi
Expand All @@ -81,7 +82,7 @@ elif [[ "$1" == "upload" ]]; then
for f in `for f in include/boost/*; do echo $f; done | cut -f2- -d/`; do echo "*/$f*"; done > /tmp/interesting
echo headers that matter:
cat /tmp/interesting
xargs --verbose -L 999999 -a /tmp/interesting lcov --rc lcov_branch_coverage=${LCOV_BRANCH_COVERAGE} --extract all.info "*/libs/$SELF/*" --output-file coverage.info
xargs --verbose -L 999999 -a /tmp/interesting lcov ${LCOV_OPTIONS} --rc lcov_branch_coverage=${LCOV_BRANCH_COVERAGE} --extract all.info "*/libs/$SELF/*" --output-file coverage.info

# dump a summary on the console - helps us identify problems in pathing
# note this has test file coverage in it - if you do not want to count test
Expand Down

0 comments on commit 9afe200

Please sign in to comment.