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

Revert TEMP HACK: Upload all to codecov (#50279)

Codecov.io have made some improvements to results processing.
Upload all the coverage data to see is codecov can process this.

Reverts https://github.com/ansible/ansible/pull/47515
This commit is contained in:
John R Barker 2018-12-23 09:42:29 +00:00 committed by GitHub
parent e1218ca10f
commit 7ec82cdfc9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -86,8 +86,7 @@ function cleanup
cp -a test/results/reports/coverage=*.xml shippable/codecoverage/ cp -a test/results/reports/coverage=*.xml shippable/codecoverage/
# 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
# HACK: Only upload certain results to codecov to avoid overloading it if [ "${COVERAGE}" ] && [ "${CHANGED}" == "" ]; then
if [ "${COVERAGE}" ] && [ "${CHANGED}" == "" ] && [[ "$T" =~ /1$ ]] ; then
for file in test/results/reports/coverage=*.xml; do for file in test/results/reports/coverage=*.xml; do
flags="${file##*/coverage=}" flags="${file##*/coverage=}"
flags="${flags%.xml}" flags="${flags%.xml}"