File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments