Use new codecov uploader

This commit is contained in:
Philipp 2023-04-01 21:52:02 +02:00
parent 5123e67f8d
commit e6a8da68cd
No known key found for this signature in database
GPG Key ID: 24A7501396EB5432

View File

@ -71,20 +71,26 @@ pipeline:
else else
phpunit --configuration tests/phpunit.xml; phpunit --configuration tests/phpunit.xml;
fi fi
codecov: codecov:
image: plugins/codecov image: friendicaci/codecov
when: when:
matrix: matrix:
PHP_MAJOR_VERSION: 7.4 PHP_MAJOR_VERSION: 7.4
PHP_VERSION: 7.4.33 PHP_VERSION: 7.4.33
repo: repo:
- friendica/friendica - friendica/friendica
settings: commands:
token: - curl https://keybase.io/codecovsecurity/pgp_keys.asc | gpg --no-default-keyring --keyring trustedkeys.gpg --import
from_secret: codecov-token - curl -Os https://uploader.codecov.io/latest/alpine/codecov
files: - curl -Os https://uploader.codecov.io/latest/alpine/codecov.SHA256SUM
- clover.xml - 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: services:
mariadb: mariadb: