Skip to content

Commit

Permalink
Merge pull request #309 from influxdata/codecov_uploader
Browse files Browse the repository at this point in the history
chore(ci): use new codecov uploader for reporting code coverage
  • Loading branch information
vlastahajek committed Mar 3, 2022
2 parents 493a0c9 + 065ff9b commit 7688764
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,18 @@ jobs:
- run:
command: |
go get gotest.tools/gotestsum && gotestsum --junitfile /tmp/test-results/unit-tests.xml -- -race -coverprofile=coverage.txt -covermode=atomic -coverpkg '.,./api/...,./internal/.../,./log/...' -tags e2e ./...
bash <(curl -s https://codecov.io/bash)
go tool cover -html=coverage.txt -o /tmp/artifacts/coverage.html
- run:
name: Collecting coverage reports
command: |
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
curl -s https://keybase.io/codecovsecurity/pgp_keys.asc | gpg --no-default-keyring --keyring trustedkeys.gpg --import
gpgv codecov.SHA256SUM.sig codecov.SHA256SUM
shasum -a 256 -c codecov.SHA256SUM
chmod +x ./codecov
./codecov
- store_artifacts:
path: /tmp/artifacts
- store_artifacts:
Expand Down

0 comments on commit 7688764

Please sign in to comment.