From eb9d48c110f53d710c8db0e25e923d371e5b0c4a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Mon, 22 May 2023 15:22:46 +0200 Subject: [PATCH] Update codecov-wrapper --- ci/codecov-wrapper | 19 +++++++++++++++---- ci/requirements.txt | 1 - 2 files changed, 15 insertions(+), 5 deletions(-) diff --git a/ci/codecov-wrapper b/ci/codecov-wrapper index 2b800f15..8c0549df 100755 --- a/ci/codecov-wrapper +++ b/ci/codecov-wrapper @@ -1,8 +1,19 @@ #!/bin/bash -PATH="$PATH:$HOME/.local/bin" +set -xe -set -x +gpg --no-default-keyring --keyring trustedkeys.gpg --import ci/codecov-keys.asc + +curl -Os https://uploader.codecov.io/latest/linux/codecov +curl -Os https://uploader.codecov.io/latest/linux/codecov.SHA256SUM +curl -Os https://uploader.codecov.io/latest/linux/codecov.SHA256SUM.sig + +gpgv codecov.SHA256SUM.sig codecov.SHA256SUM +shasum -a 256 -c codecov.SHA256SUM + +chmod +x codecov + +python3 -m coverage xml || : if [[ "$CI_COMMIT_BRANCH" =~ ^pr- ]]; then PR=${CI_COMMIT_BRANCH#pr-} @@ -12,6 +23,6 @@ if [[ "$CI_COMMIT_BRANCH" =~ ^pr- ]]; then else commit_sha=$(git show -s --format='%H') fi - exec codecov --pr "$PR" --commit "$commit_sha" "$@" + exec ./codecov --pr "$PR" --sha "$commit_sha" "$@" fi -exec codecov "$@" +exec ./codecov "$@" diff --git a/ci/requirements.txt b/ci/requirements.txt index 2bc716de..cb3c1552 100644 --- a/ci/requirements.txt +++ b/ci/requirements.txt @@ -5,5 +5,4 @@ pylint pyinotify gbulb types-setuptools -codecov pytest