1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Remove debug (#32736)

* Make script executable
* Tidy up comments
This commit is contained in:
John R Barker 2017-11-09 12:38:23 +00:00 committed by GitHub
parent 4464635787
commit 4443da2d79
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

9
test/utils/dci/dci-coverage.sh Normal file → Executable file
View file

@ -2,9 +2,13 @@
set -o pipefail
# Script invoked by DCI-Agents hooks/post-running.yml
# Platform: $1 = (ios, openvswitch, vyos, ...)
# Branch: $2 = (devel, stable-2.4, ...)
test="dci-$1"
branch="$2"
CODECOV_SLUG="ansible/ansible"
if find test/results/coverage/ -mindepth 1 -name '.*' -prune -o -print -quit | grep -q .; then
stub=""
@ -12,7 +16,7 @@ if find test/results/coverage/ -mindepth 1 -name '.*' -prune -o -print -quit | g
# shellcheck disable=SC2086
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
for file in test/results/reports/coverage=*.xml; do
flags="${file##*/coverage=}"
flags="${flags%.xml}"
@ -32,7 +36,6 @@ if find test/results/coverage/ -mindepth 1 -name '.*' -prune -o -print -quit | g
-K \
-B "$branch" \
-r "ansible/ansible" \
-v \
|| echo "Failed to upload code coverage report to codecov.io: ${file}"
done
fi