Debian Codegraph @

ansible_collections/community/windows/.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 workspace:
11 clean: all
12 steps:
13 - checkout: self
14 fetchDepth: $(fetchDepth)
15 path: $(checkoutPath)
16 - task: DownloadPipelineArtifact@2
17 displayName: Download Coverage Data
18 inputs:
19 path: coverage/
20 patterns: "Coverage */*=coverage.combined"
21 - bash: .azure-pipelines/scripts/combine-coverage.py coverage/
22 displayName: Combine Coverage Data
23 - bash: .azure-pipelines/scripts/report-coverage.sh
24 displayName: Generate Coverage Report
25 condition: gt(variables.coverageFileCount, 0)
26 - bash: .azure-pipelines/scripts/publish-codecov.py "$(outputPath)"
27 displayName: Publish to codecov.io
28 condition: gt(variables.coverageFileCount, 0)
29 continueOnError: true