Skip to content

Commit

Permalink
Merge pull request #725 from zickgraf/codecov
Browse files Browse the repository at this point in the history
Miscellaneous changes around code coverage
  • Loading branch information
zickgraf authored Oct 15, 2021
2 parents 7379063 + 43fbae7 commit e859b5b
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 5 deletions.
7 changes: 3 additions & 4 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,13 @@ jobs:
steps:
- checkout
- run: |
sudo apt update
sudo apt dist-upgrade -y
sudo apt install -y texlive-latex-extra texlive-science curl
sudo apt -o Acquire::https::Verify-Peer="false" update
sudo apt -o Acquire::https::Verify-Peer="false" dist-upgrade -y
sudo apt -o Acquire::https::Verify-Peer="false" install -y texlive-latex-extra texlive-science curl
cd ..
git clone --depth 1 https://github.com/homalg-project/homalg_project.git
cd CAP_project
TERM=dumb make ci-test
bash <(curl -s https://codecov.io/bash)
workflows:
version: 2
commit:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/Tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
TERM=dumb make -C CAP_project -j $(nproc) --output-sync ci-test
cp ./CAP_project/.codecov.yml ./
(cd CAP_project && LANG=C.UTF-8 python3 process_coverage_ignored_lines.py)
curl -s https://codecov.io/bash | bash
[ "${{ matrix.image }}" = "gapsystem/gap-docker-master" ] && ./CAP_project/upload_codecov.sh
git config --global user.name "Bot"
git config --global user.email "empty"
cd CAP_project
Expand Down
26 changes: 26 additions & 0 deletions upload_codecov.sh
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

0 comments on commit e859b5b

Please sign in to comment.