Skip to content

Commit

Permalink
Update codecov-wrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
marmarek committed May 22, 2023
1 parent 0bac706 commit eb9d48c
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 5 deletions.
19 changes: 15 additions & 4 deletions ci/codecov-wrapper
Original file line number Diff line number Diff line change
@@ -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-}
Expand All @@ -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 "$@"
1 change: 0 additions & 1 deletion ci/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,4 @@ pylint
pyinotify
gbulb
types-setuptools
codecov
pytest

0 comments on commit eb9d48c

Please sign in to comment.