mirror of
https://github.com/ansible-collections/community.docker.git
synced 2025-12-16 20:08:41 +00:00
Use Ansible's codecov uploader. (#130)
This commit is contained in:
parent
3f8946a369
commit
d63566dbd1
@ -7,7 +7,7 @@ set -o pipefail -eu
|
|||||||
|
|
||||||
output_path="$1"
|
output_path="$1"
|
||||||
|
|
||||||
curl --silent --show-error https://codecov.io/bash > codecov.sh
|
curl --silent --show-error https://ansible-ci-files.s3.us-east-1.amazonaws.com/codecov/codecov.sh > codecov.sh
|
||||||
|
|
||||||
for file in "${output_path}"/reports/coverage*.xml; do
|
for file in "${output_path}"/reports/coverage*.xml; do
|
||||||
name="${file}"
|
name="${file}"
|
||||||
|
|||||||
@ -182,7 +182,7 @@ function cleanup
|
|||||||
flags="${flags//=/,}"
|
flags="${flags//=/,}"
|
||||||
flags="${flags//[^a-zA-Z0-9_,]/_}"
|
flags="${flags//[^a-zA-Z0-9_,]/_}"
|
||||||
|
|
||||||
bash <(curl -s https://codecov.io/bash) \
|
bash <(curl -s https://ansible-ci-files.s3.us-east-1.amazonaws.com/codecov/codecov.sh) \
|
||||||
-f "${file}" \
|
-f "${file}" \
|
||||||
-F "${flags}" \
|
-F "${flags}" \
|
||||||
-n "${test}" \
|
-n "${test}" \
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user