mirror of
https://github.com/kubernetes-sigs/node-feature-discovery.git
synced 2024-12-14 11:57:51 +00:00
scripts/test-infra: provide PR info to codecov
Provide the commit SHA repo slug, PR number, prow build id and base branch to the codecov tool so that it is able to do its job.
This commit is contained in:
parent
dbb06905e5
commit
611ed65e43
1 changed files with 6 additions and 1 deletions
|
@ -29,7 +29,12 @@ echo "Running unit tests"
|
|||
make test
|
||||
|
||||
# Upload coverage report
|
||||
./codecov -t ${CODECOV_TOKEN}
|
||||
./codecov -t ${CODECOV_TOKEN} \
|
||||
-C ${PULL_PULL_SHA} \
|
||||
-r ${REPO_OWNER}/${REPO_NAME} \
|
||||
-P ${PULL_NUMBER} \
|
||||
-b ${BUILD_ID} \
|
||||
-B ${PULL_BASE_REF}
|
||||
|
||||
# Check that repo is clean
|
||||
if ! git diff --quiet; then
|
||||
|
|
Loading…
Reference in a new issue