Specify branch details, add verbose, disable colour (#32731)
This commit is contained in:
parent
356901b72d
commit
4464635787
1 changed files with 7 additions and 1 deletions
|
@ -3,12 +3,14 @@
|
||||||
set -o pipefail
|
set -o pipefail
|
||||||
|
|
||||||
test="dci-$1"
|
test="dci-$1"
|
||||||
|
branch="$2"
|
||||||
|
CODECOV_SLUG="ansible/ansible"
|
||||||
|
|
||||||
if find test/results/coverage/ -mindepth 1 -name '.*' -prune -o -print -quit | grep -q .; then
|
if find test/results/coverage/ -mindepth 1 -name '.*' -prune -o -print -quit | grep -q .; then
|
||||||
stub=""
|
stub=""
|
||||||
|
|
||||||
# shellcheck disable=SC2086
|
# shellcheck disable=SC2086
|
||||||
test/runner/ansible-test coverage xml --color -v --requirements --group-by command --group-by version ${stub:+"$stub"}
|
test/runner/ansible-test coverage xml -v --requirements --group-by command --group-by version ${stub:+"$stub"}
|
||||||
|
|
||||||
# upload coverage report to codecov.io only when using complete on-demand coverage
|
# upload coverage report to codecov.io only when using complete on-demand coverage
|
||||||
for file in test/results/reports/coverage=*.xml; do
|
for file in test/results/reports/coverage=*.xml; do
|
||||||
|
@ -27,6 +29,10 @@ if find test/results/coverage/ -mindepth 1 -name '.*' -prune -o -print -quit | g
|
||||||
-X fix \
|
-X fix \
|
||||||
-X search \
|
-X search \
|
||||||
-X xcode \
|
-X xcode \
|
||||||
|
-K \
|
||||||
|
-B "$branch" \
|
||||||
|
-r "ansible/ansible" \
|
||||||
|
-v \
|
||||||
|| echo "Failed to upload code coverage report to codecov.io: ${file}"
|
|| echo "Failed to upload code coverage report to codecov.io: ${file}"
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue