From e6a8da68cd91984e0f58b322eda20864e8082433 Mon Sep 17 00:00:00 2001 From: Philipp Date: Sat, 1 Apr 2023 21:52:02 +0200 Subject: [PATCH] Use new codecov uploader --- .woodpecker/.phpunit.yml | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/.woodpecker/.phpunit.yml b/.woodpecker/.phpunit.yml index cd9fea3500..d3730cff84 100644 --- a/.woodpecker/.phpunit.yml +++ b/.woodpecker/.phpunit.yml @@ -71,20 +71,26 @@ pipeline: else phpunit --configuration tests/phpunit.xml; fi - codecov: - image: plugins/codecov + image: friendicaci/codecov when: matrix: PHP_MAJOR_VERSION: 7.4 PHP_VERSION: 7.4.33 repo: - friendica/friendica - settings: - token: - from_secret: codecov-token - files: - - clover.xml + commands: + - curl https://keybase.io/codecovsecurity/pgp_keys.asc | gpg --no-default-keyring --keyring trustedkeys.gpg --import + - curl -Os https://uploader.codecov.io/latest/alpine/codecov + - curl -Os https://uploader.codecov.io/latest/alpine/codecov.SHA256SUM + - curl -Os https://uploader.codecov.io/latest/alpine/codecov.SHA256SUM.sig + - gpgv codecov.SHA256SUM.sig codecov.SHA256SUM + - shasum -a 256 -c codecov.SHA256SUM + - chmod +x codecov + - ./codecov -B ${CI_COMMIT_BRANCH} -C ${CI_COMMIT_SHA} -P ${CI_COMMIT_PULL_REQUEST} -b ${CI_PIPELINE_NUMBER} -Z -f 'clover.xml' + secrets: + - source: codecov-token + target: codecov_token services: mariadb: