-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #725 from zickgraf/codecov
Miscellaneous changes around code coverage
- Loading branch information
Showing
3 changed files
with
30 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
# get GPG key | ||
curl -O https://keybase.io/codecovsecurity/pgp_keys.asc | ||
# verify fingerprint | ||
if ! gpg --import --import-options show-only --with-fingerprint pgp_keys.asc | grep "2703 4E7F DB85 0E0B BC2C 62FF 806B B28A ED77 9869"; then | ||
echo "Downloaded GPG key has wrong fingerprint" | ||
exit 1 | ||
fi | ||
# import key into special keyring used by gpgv below | ||
gpg --no-default-keyring --keyring ~/.gnupg/trustedkeys.kbx --import pgp_keys.asc | ||
|
||
# get uploader with signatures | ||
curl -O https://uploader.codecov.io/latest/linux/codecov | ||
curl -O https://uploader.codecov.io/latest/linux/codecov.SHA256SUM | ||
curl -O https://uploader.codecov.io/latest/linux/codecov.SHA256SUM.sig | ||
|
||
# verify | ||
gpgv codecov.SHA256SUM.sig codecov.SHA256SUM | ||
shasum -a 256 -c codecov.SHA256SUM | ||
|
||
# execute | ||
chmod +x codecov | ||
./codecov |