Skip to content

Commit 0022c60

Browse files
committed
ci: only check for code coverage
1 parent f0a96a1 commit 0022c60

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

.pipelines/pipeline.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ stages:
5353
echo $(Build.QueuedBy)
5454
echo $(Build.Reason) # manual, PR, IndividualCI
5555
echo $(Build.SourceBranch)
56+
echo $(System.PullRequest.targetBranchName)
5657
name: "EnvironmentalVariables"
5758
displayName: "Set environmental variables"
5859
condition: always()
@@ -256,8 +257,8 @@ stages:
256257
vmSize: Standard_B2ms
257258
k8sVersion: ""
258259
dependsOn: "containerize"
259-
260-
260+
261+
261262
# Cilium Nodesubnet E2E tests
262263
- template: singletenancy/cilium-nodesubnet/cilium-nodesubnet-e2e-job-template.yaml
263264
parameters:
@@ -316,7 +317,7 @@ stages:
316317
k8sVersion: ""
317318
dependsOn: "containerize"
318319
scaleup: 100
319-
320+
320321
- template: singletenancy/azure-cni-overlay/azure-cni-overlay-e2e-job-template.yaml
321322
parameters:
322323
name: "win_azure_overlay_e2e"

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ stages:
2525
} 3>&1;
2626
} | { read xs; exit $xs; }
2727
} 4>&1
28-
28+
2929
# combine coverage from multiple modules
3030
(echo "mode: atomic"; tail -q -n +2 coverage-*.out) > coverage.cover
3131
mv coverage.cover linux-coverage.out
@@ -95,6 +95,7 @@ stages:
9595
name: "Coverage"
9696
displayName: "Generate Coverage Report"
9797
condition: always()
98+
# - ${{ if not(contains(variables['System.PullRequest.targetBranchName'], 'master')) }}:
9899
- task: PublishCodeCoverageResults@1
99100
displayName: "Publish Code Coverage Report"
100101
condition: always()

0 commit comments

Comments
 (0)