CI: Run coverage builds for PRs, but only upload on master

This commit is contained in:
Tim Wojtulewicz 2024-05-21 14:15:35 -07:00
parent e8f504c0c0
commit 0cd023b839
2 changed files with 5 additions and 5 deletions

View file

@ -131,6 +131,11 @@ if [ $HTML_REPORT -eq 1 ]; then
echo -n "Creating HTML files... "
verify_run "genhtml --ignore-errors empty -o $COVERAGE_HTML_DIR $COVERAGE_FILE"
else
if [ "${CIRRUS_BRANCH}" != "master" ]; then
echo "Coverage upload skipped for non-master branches"
exit 0
fi
# The data we send to coveralls has a lot of duplicate files in it because of the
# zeek symlink in the src directory. Run a script that cleans that up.
echo -n "Cleaning coverage data for Coveralls..."