Skip to content

Commit a5dc47f

Browse files
authored
ci: use publish code coverage results v1 (#3647)
* use code coverage v1 * set base branch for testing * set base branch back to master * remove windows ut regression check as multi file not supported with v1 * test regression check * Revert "test regression check" This reverts commit c115fd9. * add comment
1 parent 67d2c5a commit a5dc47f

File tree

1 file changed

+4
-10
lines changed

1 file changed

+4
-10
lines changed

.pipelines/templates/run-unit-tests.yaml

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@ stages:
6464
displayName: Code Coverage Check
6565
dependsOn:
6666
- test
67-
- test_windows
6867
jobs:
6968
- job: coverage
7069
displayName: Check Coverage
@@ -75,10 +74,6 @@ stages:
7574
inputs:
7675
artifact: 'linux-coverage'
7776
path: './'
78-
- task: DownloadPipelineArtifact@2
79-
inputs:
80-
artifact: 'windows-coverage'
81-
path: './'
8277
- bash: |
8378
make tools
8479
sudo ln -s $(pwd)/build/tools/bin/gocov /usr/local/bin/gocov
@@ -87,21 +82,20 @@ stages:
8782
GOOS=linux gocov convert linux-coverage.out > linux-coverage.json
8883
GOOS=linux gocov-xml < linux-coverage.json > linux-coverage.xml
8984
90-
GOOS=windows gocov convert windows-coverage.out > windows-coverage.json
91-
GOOS=windows gocov-xml < windows-coverage.json > windows-coverage.xml
85+
# TODO: Add windows coverage back in once PublishCodeCoverageResults v2 works with BuildQualityChecks
9286
9387
mkdir coverage
9488
9589
mv linux-coverage.xml coverage/
96-
mv windows-coverage.xml coverage/
9790
name: "Coverage"
9891
displayName: "Generate Coverage Report"
9992
condition: always()
100-
- task: PublishCodeCoverageResults@2
93+
- task: PublishCodeCoverageResults@1
10194
displayName: "Publish Code Coverage Report"
10295
condition: always()
10396
inputs:
104-
summaryFileLocation: coverage/*
97+
codeCoverageTool: 'Cobertura'
98+
summaryFileLocation: coverage/linux-coverage.xml
10599
- task: BuildQualityChecks@8
106100
displayName: "Check Code Coverage Regression"
107101
condition: always()

0 commit comments

Comments
 (0)