zeek/ci/upload-coverage.sh
Patrick Kelley 8fd444092b initial
2025-05-07 15:35:15 -04:00

17 lines
435 B
Bash
Executable File

#! /usr/bin/env bash
# The ZEEK_COVERALLS_REPO_TOKEN environment variable must exist
# for this script to work correctly. On Cirrus, this is provided
# via the secured variables.
# Only do this on the master branch to avoid having a ton of data
# in Coveralls.
if [ "${CIRRUS_REPO_FULL_NAME}" != "zeek/zeek" ]; then
echo "Coverage upload skipped for non-zeek repo"
exit 0
fi
cd testing/coverage
make coverage
make coveralls