浏览代码

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>
Álvaro Brey Vilas 3 年之前
父节点
当前提交
a52c9e0761
共有 1 个文件被更改,包括 3 次插入2 次删除
  1. 3 2
      scripts/runCombinedTest.sh

+ 3 - 2
scripts/runCombinedTest.sh

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