Merge pull request #336 from slarse/update-bash-uploader-to-1.0.3

Update bash uploader to 1.0.3
This commit is contained in:
Tom Hu 2021-06-08 11:14:46 -04:00 committed by GitHub
commit 67f597a1c4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 10 deletions

9
dist/codecov vendored
View file

@ -5,7 +5,7 @@
set -e +o pipefail
VERSION="1.0.2"
VERSION="1.0.3"
codecov_flags=( )
url="https://codecov.io"
@ -1866,10 +1866,9 @@ else
-H 'Accept: text/plain' \
$curlargs \
"$url/upload/v2?$query&attempt=$i" || echo 'HTTP 500')
# HTTP 200
# http://....
status=$(echo "$res" | head -1 | cut -d' ' -f2)
if [ "$status" = "" ] || [ "$status" = "200" ];
# {"message": "Coverage reports upload successfully", "uploaded": true, "queued": true, "id": "...", "url": "https://codecov.io/..."\}
uploaded=$(grep -o '\"uploaded\": [a-z]*' <<< "$res" | head -1 | cut -d' ' -f2)
if [ "$uploaded" = "true" ]
then
say " Reports have been successfully queued for processing at ${b}$(echo "$res" | head -2 | tail -1)${x}"
exit 0

View file

@ -5,7 +5,7 @@
set -e +o pipefail
VERSION="1.0.2"
VERSION="1.0.3"
codecov_flags=( )
url="https://codecov.io"
@ -1866,10 +1866,9 @@ else
-H 'Accept: text/plain' \
$curlargs \
"$url/upload/v2?$query&attempt=$i" || echo 'HTTP 500')
# HTTP 200
# http://....
status=$(echo "$res" | head -1 | cut -d' ' -f2)
if [ "$status" = "" ] || [ "$status" = "200" ];
# {"message": "Coverage reports upload successfully", "uploaded": true, "queued": true, "id": "...", "url": "https://codecov.io/..."\}
uploaded=$(grep -o '\"uploaded\": [a-z]*' <<< "$res" | head -1 | cut -d' ' -f2)
if [ "$uploaded" = "true" ]
then
say " Reports have been successfully queued for processing at ${b}$(echo "$res" | head -2 | tail -1)${x}"
exit 0