Skip to content
This repository has been archived by the owner on Jul 18, 2022. It is now read-only.

Commit

Permalink
Merge pull request #10 from aaronpowell/codecov-io
Browse files Browse the repository at this point in the history
Adding codecov for coverage reporting
  • Loading branch information
aaronpowell authored Jul 22, 2019
2 parents e116290 + 81640ff commit 776df0f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .azure-pipelines/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,16 @@ steps:
inputs:
codeCoverageTool: 'cobertura'
summaryFileLocation: coverage/cobertura-coverage.xml
reportDirectory: coverage/lcov-report
condition: succeededOrFailed()

- bash: |
bash <(curl https://codecov.io/bash) -t $(TOKEN) -f coverage/cobertura-coverage.xml
displayName: 'codecov'
condition: succeededOrFailed()
env:
TOKEN: $(CODECOV_TOKEN)
- task: CopyFiles@2
inputs:
sourceFolder: '$(Build.SourcesDirectory)/coverage'
Expand All @@ -39,4 +47,4 @@ steps:
displayName: 'Publish Coverage Artifact'
inputs:
targetPath: $(Build.ArtifactStagingDirectory)
artifactName: 'coverage-$(Agent.OS)-$(node_version)'
artifactName: 'coverage-$(Agent.OS)-$(node_version)'
3 changes: 3 additions & 0 deletions azure-pipelines.pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ trigger:
pr:
- master

variables:
- group: codecov

jobs:
- job: Linux
pool:
Expand Down

0 comments on commit 776df0f

Please # to comment.