Debian Codegraph @

ansible_collections/community/docker/.azure-pipelines/templates/coverage.yml

raw symbols SCIP
1 ---
2 # Copyright (c) Ansible Project
3 # GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt)
4 # SPDX-License-Identifier: GPL-3.0-or-later
5
6 # This template adds a job for processing code coverage data.
7 # It will upload results to Azure Pipelines and codecov.io.
8 # Use it from a job stage that completes after all other jobs have completed.
9 # This can be done by placing it in a separate summary stage that runs after the test stage(s) have completed.
10
11 jobs:
12 - job: Coverage
13 displayName: Code Coverage
14 container: default
15 workspace:
16 clean: all
17 steps:
18 - checkout: self
19 fetchDepth: $(fetchDepth)
20 path: $(checkoutPath)
21 - task: DownloadPipelineArtifact@2
22 displayName: Download Coverage Data
23 inputs:
24 path: coverage/
25 patterns: "Coverage */*=coverage.combined"
26 - bash: .azure-pipelines/scripts/combine-coverage.py coverage/
27 displayName: Combine Coverage Data
28 - bash: .azure-pipelines/scripts/report-coverage.sh
29 displayName: Generate Coverage Report
30 condition: gt(variables.coverageFileCount, 0)
31 - bash: .azure-pipelines/scripts/publish-codecov.py "$(outputPath)"
32 displayName: Publish to codecov.io
33 condition: gt(variables.coverageFileCount, 0)
34 continueOnError: true