codecov: Use new codecov uploader instead of the deprecated bash uploader

Ref: https://docs.codecov.com/docs/about-the-codecov-bash-uploader

Old bash uploader has been deprecated and will start failing on September 2021,
with it completely failing from February 2022.

Signed-off-by: Álvaro Brey Vilas <alvaro.brey@nextcloud.com>
This commit is contained in:
Álvaro Brey Vilas 2021-10-01 12:47:44 +02:00
parent 9198dfe331
commit a52c9e0761
No known key found for this signature in database
GPG key ID: 2585783189A62105

View file

@ -33,8 +33,9 @@ fi
./gradlew combinedTestReport ./gradlew combinedTestReport
stat=$(( stat | $? )) stat=$(( stat | $? ))
curl -o codecov.sh https://codecov.io/bash curl -Os https://uploader.codecov.io/latest/linux/codecov
bash ./codecov.sh -t fc506ba4-33c3-43e4-a760-aada38c24fd5 chmod +x codecov
./codecov -t fc506ba4-33c3-43e4-a760-aada38c24fd5
echo "Exit with: " $stat echo "Exit with: " $stat
exit $stat exit $stat