summaryrefslogtreecommitdiff
path: root/.azurepipelines/templates/pr-gate-steps.yml
diff options
context:
space:
mode:
authorGua Guo <gua.guo@intel.com>2022-11-08 16:38:49 +0800
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2023-01-04 02:06:01 +0000
commit89c5d90003d9c54d03d3e85bd305718e9c29a213 (patch)
tree544e52a7c2fd2d8f327d2cd4b2df1d1c9c5895ad /.azurepipelines/templates/pr-gate-steps.yml
parent6bb00aa4846c874a8b98163624c41856b486daee (diff)
downloadedk2-89c5d90003d9c54d03d3e85bd305718e9c29a213.zip
edk2-89c5d90003d9c54d03d3e85bd305718e9c29a213.tar.gz
edk2-89c5d90003d9c54d03d3e85bd305718e9c29a213.tar.bz2
.azurepipelines: Install code coverage tool
For Windows add below tool for code coverage 1. OpenCppCoverage: parsing pdb file to generate coverage data 2. pycobertura: show up html format data for coverage data For Linux add below tool for code coverage 1. lcov: parsing gcda gcno file to generate coverage data 2. lcov-cobertura: convert coverage data to cobertura format 3. pycobertura: show up html format data for coverage data Cc: Sean Brogan <sean.brogan@microsoft.com> Cc: Bret Barkelew <Bret.Barkelew@microsoft.com> Reviewed-by: Michael D Kinney <michael.d.kinney@intel.com> Cc: Liming Gao <gaoliming@byosoft.com.cn> Reviewed-by: Michael Kubacki <michael.kubacki@microsoft.com> Signed-off-by: Gua Guo <gua.guo@intel.com>
Diffstat (limited to '.azurepipelines/templates/pr-gate-steps.yml')
-rw-r--r--.azurepipelines/templates/pr-gate-steps.yml4
1 files changed, 4 insertions, 0 deletions
diff --git a/.azurepipelines/templates/pr-gate-steps.yml b/.azurepipelines/templates/pr-gate-steps.yml
index cb431e5..080f60a 100644
--- a/.azurepipelines/templates/pr-gate-steps.yml
+++ b/.azurepipelines/templates/pr-gate-steps.yml
@@ -12,6 +12,7 @@ parameters:
build_pkgs: ''
build_targets: ''
build_archs: ''
+ extra_install_step: []
steps:
- checkout: self
@@ -37,6 +38,8 @@ steps:
displayName: fetch target branch
condition: eq(variables['Build.Reason'], 'PullRequest')
+- ${{ parameters.extra_install_step }}
+
# trim the package list if this is a PR
- task: CmdLine@1
displayName: Check if ${{ parameters.build_pkgs }} need testing
@@ -125,6 +128,7 @@ steps:
TestSuites.xml
**/BUILD_TOOLS_REPORT.html
**/OVERRIDELOG.TXT
+ coverage.xml
flattenFolders: true
condition: succeededOrFailed()