Debian Codegraph @

.azure-pipelines/templates/coverage.yml

raw symbols SCIP
1 # This template adds a job for processing code coverage data.
2 # It will upload results to Azure Pipelines and codecov.io.
3 # Use it from a job stage that completes after all other jobs have completed.
4 # This can be done by placing it in a separate summary stage that runs after the test stage(s) have completed.
5
6 jobs:
7 - job: Coverage
8 displayName: Code Coverage
9 container: $[ variables.defaultContainer ]
10 timeoutInMinutes: 10
11 workspace:
12 clean: all
13 steps:
14 - checkout: self
15 fetchDepth: $(fetchDepth)
16 path: $(checkoutPath)
17 - task: DownloadPipelineArtifact@2
18 displayName: Download Coverage Data
19 inputs:
20 path: coverage/
21 patterns: "Coverage */*=coverage.combined"
22 - bash: .azure-pipelines/scripts/combine-coverage.py coverage/
23 displayName: Combine Coverage Data
24 - bash: .azure-pipelines/scripts/report-coverage.sh
25 displayName: Generate Coverage Report
26 condition: gt(variables.coverageFileCount, 0)
27 - bash: .azure-pipelines/scripts/publish-codecov.py "$(outputPath)"
28 displayName: Publish to codecov.io
29 condition: gt(variables.coverageFileCount, 0)
30 continueOnError: true