@@ -45,7 +45,7 @@ stages:
45
45
${{ if and(ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest')) }} :
46
46
name : NetCoreInternal-Pool
47
47
queue : buildpool.windows.10.amd64.vs2019
48
- timeoutInMinutes : 300
48
+ timeoutInMinutes : 90
49
49
variables :
50
50
# Enable signing for internal, non-PR builds
51
51
- ${{ if and(ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest')) }} :
@@ -76,6 +76,10 @@ stages:
76
76
value : Test
77
77
- name : _BuildArgs
78
78
value : /p:SignType=$(_SignType)
79
+ # SkipTests
80
+ - ${{ if ne(variables['SkipTests'], 'true') }} :
81
+ - name : _TestArgs
82
+ value : -test
79
83
steps :
80
84
- script : git config --global core.longpaths true
81
85
displayName : Enable `git clean` to handle long paths
@@ -110,7 +114,7 @@ stages:
110
114
-configuration $(_BuildConfig)
111
115
-prepareMachine
112
116
-sign
113
- -test
117
+ $(_TestArgs)
114
118
$(_BuildArgs)
115
119
displayName : Build / Test
116
120
env :
@@ -119,6 +123,7 @@ stages:
119
123
- script : npm run ciTest
120
124
displayName : NPM tests
121
125
workingDirectory : " $(Build.SourcesDirectory)/src/Microsoft.DotNet.Interactive.Js"
126
+ condition : ne(variables['SkipTests'], 'true')
122
127
123
128
# build and test VS Code extension
124
129
- script : npm install
@@ -128,6 +133,7 @@ stages:
128
133
- script : npm run ciTest
129
134
displayName : npm test (VS Code stable)
130
135
workingDirectory : " $(Build.SourcesDirectory)/src/dotnet-interactive-vscode/stable"
136
+ condition : ne(variables['SkipTests'], 'true')
131
137
132
138
- script : npm install
133
139
displayName : npm install (VS Code insiders)
@@ -136,6 +142,7 @@ stages:
136
142
- script : npm run ciTest
137
143
displayName : npm test (VS Code insiders)
138
144
workingDirectory : " $(Build.SourcesDirectory)/src/dotnet-interactive-vscode/insiders"
145
+ condition : ne(variables['SkipTests'], 'true')
139
146
140
147
# build and test npm package
141
148
- script : npm install
@@ -145,6 +152,7 @@ stages:
145
152
- script : npm run ciTest
146
153
displayName : npm test (npm package)
147
154
workingDirectory : " $(Build.SourcesDirectory)/src/dotnet-interactive-npm"
155
+ condition : ne(variables['SkipTests'], 'true')
148
156
149
157
# publish VS Code and npm test results
150
158
- task : PublishTestResults@2
@@ -231,6 +239,10 @@ stages:
231
239
value : Test
232
240
- name : _BuildArgs
233
241
value : /p:SignType=$(_SignType)
242
+ # SkipTests
243
+ - ${{ if ne(variables['SkipTests'], 'true') }} :
244
+ - name : _TestArgs
245
+ value : --test
234
246
steps :
235
247
- script : git config --global core.longpaths true
236
248
displayName : Enable `git clean` to handle long paths
@@ -258,14 +270,15 @@ stages:
258
270
- script : ./eng/cibuild.sh
259
271
--configuration $(_BuildConfig)
260
272
--prepareMachine
261
- --test
273
+ $(_TestArgs)
262
274
displayName : Build / Test
263
275
env :
264
276
TRYDOTNET_PACKAGES_PATH : $(TryDotNetPackagesPath)
265
277
266
278
- script : npm run ciTest
267
279
displayName : NPM tests
268
280
workingDirectory : " $(Build.SourcesDirectory)/src/Microsoft.DotNet.Interactive.Js"
281
+ condition : ne(variables['SkipTests'], 'true')
269
282
270
283
- template : /eng/common/templates/jobs/jobs.yml
271
284
parameters :
@@ -321,7 +334,7 @@ stages:
321
334
jobs :
322
335
- job : IntegrationTest
323
336
dependsOn : Windows_NT
324
- condition : succeeded()
337
+ condition : and( succeeded(), ne(variables['SkipTests'], 'true') )
325
338
pool :
326
339
vmImage : ubuntu-latest
327
340
variables :
0 commit comments