etcd/scripts/codecov_upload.sh
Ivan Valdes 4ce48cea70
Enable uploading coverage report from Prow
Signed-off-by: Ivan Valdes <ivan@vald.es>
2025-02-28 17:18:44 -08:00

19 lines
421 B
Bash
Executable File

#!/usr/bin/env bash
# Script used to collect and upload test coverage.
set -o pipefail
# We try to upload whatever we have:
mkdir -p bin
curl -sf -o ./bin/codecov.sh https://codecov.io/bash
bash ./bin/codecov.sh -f "${COVERDIR}/all.coverprofile" \
-cF all \
-C "${PULL_PULL_SHA}" \
-r "${REPO_OWNER}/${REPO_NAME}" \
-P "${PULL_NUMBER}" \
-b "${BUILD_ID}" \
-B "${PULL_BASE_REF}" \
-N "${PULL_BASE_SHA}"