mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-06-27 10:40:22 -07:00
TEMP HACK: Avoid overloading codecov.io (#47515)
Without this patch we are overloading codecov.io by uploading 90+ tests. As a workaround limit uploading to only "Group 1" Will be removed/updated based on codecov.io's support team
This commit is contained in:
parent
f6ecdf0b87
commit
fb2e838a42
1 changed files with 2 additions and 1 deletions
|
@ -86,7 +86,8 @@ 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
|
||||||
if [ "${COVERAGE}" ] && [ "${CHANGED}" == "" ]; then
|
# HACK: Only upload certain results to codecov to avoid overloading it
|
||||||
|
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}"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue