Skip to content

Commit 079b855

Browse files
authored
Skip Helix tests when skipping tests (#37171)
- also make `Skip tests?` option visible when starting manual runs
1 parent 63f2fa0 commit 079b855

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

.azure/pipelines/ci.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,13 @@ pr:
1818
include:
1919
- '*'
2020

21+
# Choose whether to skip tests when running pipeline manually.
22+
parameters:
23+
- name: skipTests
24+
default: false
25+
displayName: Skip tests?
26+
type: boolean
27+
2128
variables:
2229
- name: DOTNET_SKIP_FIRST_TIME_EXPERIENCE
2330
value: true
@@ -639,11 +646,10 @@ stages:
639646
parameters:
640647
inputName: Linux_musl_arm64
641648

642-
- ${{ if or(eq(variables['System.TeamProject'], 'public'), in(variables['Build.Reason'], 'PullRequest'), in(variables['Build.Reason'], 'Manual')) }}:
649+
- ${{ if and(ne(parameters.skipTests, 'true'), or(eq(variables['System.TeamProject'], 'public'), in(variables['Build.Reason'], 'PullRequest'), in(variables['Build.Reason'], 'Manual'))) }}:
643650
# Test jobs
644651
- template: jobs/default-build.yml
645652
parameters:
646-
condition: ne(variables['SkipTests'], 'true')
647653
jobName: Windows_Test
648654
jobDisplayName: "Test: Windows Server 2016 x64"
649655
agentOs: Windows
@@ -669,7 +675,6 @@ stages:
669675

670676
- template: jobs/default-build.yml
671677
parameters:
672-
condition: ne(variables['SkipTests'], 'true')
673678
jobName: MacOS_Test
674679
jobDisplayName: "Test: macOS 10.15"
675680
agentOs: macOS
@@ -691,7 +696,6 @@ stages:
691696

692697
- template: jobs/default-build.yml
693698
parameters:
694-
condition: ne(variables['SkipTests'], 'true')
695699
jobName: Linux_Test
696700
jobDisplayName: "Test: Ubuntu 18.04 x64"
697701
agentOs: Linux

0 commit comments

Comments
 (0)