From f9a09a75d98dad99088aceb41bf05944f5ea0eb8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81lvaro=20Brey=20Vilas?= Date: Thu, 21 Oct 2021 12:09:54 +0200 Subject: [PATCH] codecov: Use new codecov uploader instead of deprecated bash uploader MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Ref: https://docs.codecov.com/docs/about-the-codecov-bash-uploader Old bash uploader has been deprecated and will start failing on September 2021, and fail completely from February 2022. Analogous to https://github.com/nextcloud/android/pull/9048 Signed-off-by: Álvaro Brey Vilas --- .drone.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.drone.yml b/.drone.yml index 0e122fd4a..d31ef66fe 100644 --- a/.drone.yml +++ b/.drone.yml @@ -70,8 +70,9 @@ steps: - ./gradlew installDebugAndroidTest - ./gradlew createDebugCoverageReport || scripts/uploadReport.sh $LOG_USERNAME $LOG_PASSWORD $DRONE_BUILD_NUMBER "master" "IT" $DRONE_PULL_REQUEST $GIT_USERNAME $GIT_TOKEN - ./gradlew combinedTestReport - - curl -o codecov.sh https://codecov.io/bash - - bash ./codecov.sh -t 2eec98c3-ff20-4cad-9e08-463471a33431 + - curl -Os https://uploader.codecov.io/latest/linux/codecov + - chmod +x codecov + - ./codecov -t 2eec98c3-ff20-4cad-9e08-463471a33431 - name: notify image: drillster/drone-email @@ -158,8 +159,9 @@ steps: - ./gradlew installDebugAndroidTest - ./gradlew createDebugCoverageReport || scripts/uploadReport.sh $LOG_USERNAME $LOG_PASSWORD $DRONE_BUILD_NUMBER "stable" "IT" $DRONE_PULL_REQUEST $GIT_USERNAME $GIT_TOKEN - ./gradlew combinedTestReport - - curl -o codecov.sh https://codecov.io/bash - - bash ./codecov.sh -t 2eec98c3-ff20-4cad-9e08-463471a33431 + - curl -Os https://uploader.codecov.io/latest/linux/codecov + - chmod +x codecov + - ./codecov -t 2eec98c3-ff20-4cad-9e08-463471a33431 - name: notify image: drillster/drone-email