Skip to content

Commit 9fe1e8f

Browse files
committed
Use lcov 1.15 and remove /.cache/ files
1 parent 7eaddd4 commit 9fe1e8f

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

tools/ci/uploadCoverageData.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ set -euo pipefail
55
EXCLUSIONS=("$@")
66

77
# Install lcov if required
8-
LCOV_VERSION="1.13"
8+
LCOV_VERSION="1.15"
99
if [[ ! "$(lcov --version 2> /dev/null || true)" =~ "version ${LCOV_VERSION}" ]]; then
1010
LCOV_ROOT="/tmp/lcov"
11-
LCOV_URL="http://ftp.de.debian.org/debian/pool/main/l/lcov/lcov_${LCOV_VERSION}.orig.tar.gz"
11+
LCOV_URL="https://github.com/linux-test-project/lcov/releases/download/v${LCOV_VERSION}/lcov-${LCOV_VERSION}.tar.gz"
1212
mkdir "${LCOV_ROOT}"
1313
wget --quiet -O - "${LCOV_URL}" | tar --strip-components=1 -xz -C "${LCOV_ROOT}"
1414
export PATH="${LCOV_ROOT}/bin:${PATH}"
@@ -21,7 +21,7 @@ lcov --version || true
2121
# capture coverage info
2222
lcov --gcov-tool "${GCOV}" --directory build --capture --output-file coverage.info --rc lcov_branch_coverage=1 > /dev/null
2323
# Remove everything from /usr (unrelated), external folder (3rd party data), test code
24-
lcov --remove coverage.info '/usr/*' "${HOME}/"'.cache/*' --output-file coverage.info > /dev/null
24+
lcov --remove coverage.info '/usr/*' '*/.cache/*' --output-file coverage.info > /dev/null
2525
for excl in "${EXCLUSIONS[@]}"; do
2626
lcov --remove coverage.info "${excl}" --output-file coverage.info > /dev/null
2727
done

0 commit comments

Comments
 (0)