mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
CI: Run coverage builds for PRs, but only upload on master
This commit is contained in:
parent
e8f504c0c0
commit
0cd023b839
2 changed files with 5 additions and 5 deletions
|
@ -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..."
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue