Skip to content

Commit fcb6f51

Browse files
authored
Add CodeCov token (#288)
1 parent 9ffff61 commit fcb6f51

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ For older change log history see the [historic changelog](HISTORIC_CHANGELOG.md)
2121
- Update latest module files from Sampler.
2222
- Use matrix pipeline strategy.
2323
- Try using CodeCov CLI
24+
- Update CodeCov CLI command
2425

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

azure-pipelines.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -157,15 +157,14 @@ stages:
157157
summaryFileLocation: '$(Build.SourcesDirectory)/$(buildFolderName)/$(testResultFolderName)/JaCoCo_coverage.xml'
158158
pathToSources: '$(Build.SourcesDirectory)/$(sourceFolderName)/'
159159
- script: |
160-
curl https://keybase.io/codecovsecurity/pgp_keys.asc | gpg --no-default-keyring --keyring trustedkeys.gpg --import # One-time step
160+
curl https://keybase.io/codecovsecurity/pgp_keys.asc | gpg --no-default-keyring --import
161161
curl -Os https://cli.codecov.io/latest/linux/codecov
162162
curl -Os https://cli.codecov.io/latest/linux/codecov.SHA256SUM
163163
curl -Os https://cli.codecov.io/latest/linux/codecov.SHA256SUM.sig
164164
gpg --verify codecov.SHA256SUM.sig codecov.SHA256SUM
165-
166165
shasum -a 256 -c codecov.SHA256SUM
167166
chmod +x codecov
168-
./codecov do-upload -f "./$(buildFolderName)/$(testResultFolderName)/JaCoCo_coverage.xml"
167+
./codecov do-upload -f "./$(buildFolderName)/$(testResultFolderName)/JaCoCo_coverage.xml" -t $(CODECOV_TOKEN)
169168
displayName: 'Publish Code Coverage to Codecov.io'
170169
condition: succeededOrFailed()
171170

0 commit comments

Comments
 (0)