mirror of
https://github.com/kubernetes-sigs/node-feature-discovery.git
synced 2025-03-29 03:04:40 +00:00
scripts/test-infra: provide PR base SHA to codecov
In the hopes that codecov will be properly showing and calculating the diff. Also quote the args for proper handling of empty values.
This commit is contained in:
parent
9c1912cc7b
commit
32072dddf1
1 changed files with 7 additions and 6 deletions
|
@ -29,12 +29,13 @@ echo "Running unit tests"
|
|||
make test
|
||||
|
||||
# Upload coverage report
|
||||
./codecov -t ${CODECOV_TOKEN} \
|
||||
-C ${PULL_PULL_SHA} \
|
||||
-r ${REPO_OWNER}/${REPO_NAME} \
|
||||
-P ${PULL_NUMBER} \
|
||||
-b ${BUILD_ID} \
|
||||
-B ${PULL_BASE_REF}
|
||||
./codecov -t "${CODECOV_TOKEN}" \
|
||||
-C "${PULL_PULL_SHA}" \
|
||||
-r "${REPO_OWNER}/${REPO_NAME}" \
|
||||
-P "${PULL_NUMBER}" \
|
||||
-b "${BUILD_ID}" \
|
||||
-B "${PULL_BASE_REF}" \
|
||||
-N "${PULL_BASE_SHA}"
|
||||
|
||||
# Check that repo is clean
|
||||
if ! git diff --quiet; then
|
||||
|
|
Loading…
Add table
Reference in a new issue