Skip to content

Commit e70cd2b

Browse files
authored
Upload reports to codecov (microsoft#6396)
1 parent a84378b commit e70cd2b

3 files changed

Lines changed: 110 additions & 21 deletions

File tree

build/ci/templates/generate_upload_coverage.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,11 @@ steps:
2929
COVERALLS_GIT_COMMIT: $(Build.SourceVersion)
3030
COVERALLS_GIT_BRANCH: $(Build.SourceBranchName)
3131
CI_PULL_REQUEST: $(System.PullRequest.PullRequestNumber)
32+
33+
- bash: cat ./coverage/lcov.info | ./node_modules/.bin/codecov --pipe
34+
displayName: 'Upload coverage to codecov'
35+
continueOnError: true
36+
condition: contains(variables['TestsToRun'], 'testUnitTests')
37+
failOnStderr: false
38+
env:
39+
CODECOV_TOKEN: $(CODECOV_TOKEN)

package-lock.json

Lines changed: 101 additions & 21 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)