Skip to content

Commit 9ffff61

Browse files
authored
Use CodeCov CLI (#287)
1 parent 87a3571 commit 9ffff61

2 files changed

Lines changed: 10 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ For older change log history see the [historic changelog](HISTORIC_CHANGELOG.md)
2020
- Switch build pipeline to use `windows-latest` as the build agent.
2121
- Update latest module files from Sampler.
2222
- Use matrix pipeline strategy.
23+
- Try using CodeCov CLI
2324

2425
## [2.1.0] - 2022-06-19
2526

azure-pipelines.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,15 @@ stages:
157157
summaryFileLocation: '$(Build.SourcesDirectory)/$(buildFolderName)/$(testResultFolderName)/JaCoCo_coverage.xml'
158158
pathToSources: '$(Build.SourcesDirectory)/$(sourceFolderName)/'
159159
- script: |
160-
bash <(curl -s https://codecov.io/bash) -f "./$(buildFolderName)/$(testResultFolderName)/JaCoCo_coverage.xml"
160+
curl https://keybase.io/codecovsecurity/pgp_keys.asc | gpg --no-default-keyring --keyring trustedkeys.gpg --import # One-time step
161+
curl -Os https://cli.codecov.io/latest/linux/codecov
162+
curl -Os https://cli.codecov.io/latest/linux/codecov.SHA256SUM
163+
curl -Os https://cli.codecov.io/latest/linux/codecov.SHA256SUM.sig
164+
gpg --verify codecov.SHA256SUM.sig codecov.SHA256SUM
165+
166+
shasum -a 256 -c codecov.SHA256SUM
167+
chmod +x codecov
168+
./codecov do-upload -f "./$(buildFolderName)/$(testResultFolderName)/JaCoCo_coverage.xml"
161169
displayName: 'Publish Code Coverage to Codecov.io'
162170
condition: succeededOrFailed()
163171

0 commit comments

Comments
 (0)