summaryrefslogtreecommitdiff
path: root/build-aux
diff options
context:
space:
mode:
authorZack Weinberg <zackw@panix.com>2021-01-04 10:35:58 -0500
committerZack Weinberg <zackw@panix.com>2021-01-04 10:35:58 -0500
commitd861fe09a492fe73e2147c7e62ba70f8a20557cc (patch)
tree629a96c91262580e24f4126cd9cb6e0258360c24 /build-aux
parent6096b5d8d87f4b1def432167b4f5dbefa32475e4 (diff)
downloadlibxcrypt-d861fe09a492fe73e2147c7e62ba70f8a20557cc.tar.gz
libxcrypt-d861fe09a492fe73e2147c7e62ba70f8a20557cc.tar.bz2
libxcrypt-d861fe09a492fe73e2147c7e62ba70f8a20557cc.zip
Enable tracking of branch coverage data.
lcov filters out branch coverage data by default because it’s expensive to analyze, but this library is small enough that it shouldn’t be an issue.
Diffstat (limited to 'build-aux')
-rwxr-xr-xbuild-aux/travis-after-success16
1 files changed, 11 insertions, 5 deletions
diff --git a/build-aux/travis-after-success b/build-aux/travis-after-success
index bab19c7..149119c 100755
--- a/build-aux/travis-after-success
+++ b/build-aux/travis-after-success
@@ -42,11 +42,17 @@ done
set fnord; shift # clear $@
set -x
-lcov --gcov-tool $GCOV --directory . --capture --output-file all_coverage.info
-lcov --gcov-tool $GCOV --remove all_coverage.info \
- '/usr/*' '*test*' > coverage.info
-rm all_coverage.info
+# Merge all of the gcov output into one overview file using lcov,
+# then prune data for the tests themselves, and for system libraries.
-# Upload
+lcov --gcov-tool $GCOV --rc lcov_branch_coverage=1 \
+ --directory . --output-file all_coverage.info \
+ --capture
+
+lcov --gcov-tool $GCOV --rc lcov_branch_coverage=1 \
+ --directory . --output-file coverage.info \
+ --remove all_coverage.info '/usr/*' '*test*'
+
+# Upload the pruned .info file only.
curl -sS -o codecov.bash https://codecov.io/bash
bash codecov.bash -f coverage.info