Skip to content

Commit

Permalink
Try going back to codecov bash uploader
Browse files Browse the repository at this point in the history
ci_complete
ci_coverage
  • Loading branch information
jillr committed May 19, 2020
1 parent 3c5f774 commit ab3a7e6
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions tests/utils/shippable/shippable.sh
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,6 @@ function cleanup

# upload coverage report to codecov.io only when using complete on-demand coverage
if [ "${COVERAGE}" == "--coverage" ] && [ "${CHANGED}" == "" ]; then
pip install codecov
for file in tests/output/reports/coverage=*.xml; do
flags="${file##*/coverage=}"
flags="${flags%-powershell.xml}"
Expand All @@ -128,17 +127,16 @@ function cleanup
flags="${flags//=/,}"
flags="${flags//[^a-zA-Z0-9_,]/_}"

codecov \
bash <(curl -s https://codecov.io/bash) \
-f "${file}" \
-F "${flags}" \
-n "${test}" \
-t bc371da7-e5d2-4743-93b5-309f81d457a4
-X pycov \
-X coveragepy \
-X gcov \
-X fix \
-X search \
-X xcode \
-r ansible-collections/amazon.aws \
|| echo "Failed to upload code coverage report to codecov.io: ${file}"
done
fi
Expand Down

0 comments on commit ab3a7e6

Please sign in to comment.