16
16
pool :
17
17
vmImage : ' windows-2022'
18
18
steps :
19
+ - task : UseDotNet@2
20
+ inputs :
21
+ version : ' 7.x'
22
+ - task : UseDotNet@2
23
+ inputs :
24
+ version : ' 6.x'
25
+ # .NET 5 required for GitVersion
26
+ - task : UseDotNet@2
27
+ inputs :
28
+ version : ' 5.x'
19
29
- powershell : |
20
30
$ENV:CAKE_SKIP_GITVERSION=([string]::IsNullOrEmpty($ENV:SYSTEM_PULLREQUEST_PULLREQUESTID) -eq $False).ToString()
21
31
.\build.ps1
@@ -33,13 +43,14 @@ jobs:
33
43
steps :
34
44
- task : UseDotNet@2
35
45
inputs :
36
- version : ' 6 .x'
46
+ version : ' 7 .x'
37
47
- task : UseDotNet@2
38
48
inputs :
39
- version : ' 5.x'
49
+ version : ' 6.x'
50
+ # .NET 5 required for GitVersion
40
51
- task : UseDotNet@2
41
52
inputs :
42
- version : ' 3 .x'
53
+ version : ' 5 .x'
43
54
- bash : |
44
55
./build.sh
45
56
displayName: 'Cake Build'
@@ -55,68 +66,27 @@ jobs:
55
66
steps :
56
67
- task : UseDotNet@2
57
68
inputs :
58
- version : ' 6 .x'
69
+ version : ' 7 .x'
59
70
- task : UseDotNet@2
60
71
inputs :
61
- version : ' 5.x'
72
+ version : ' 6.x'
73
+ # .NET 5 required for GitVersion
62
74
- task : UseDotNet@2
63
75
inputs :
64
- version : ' 3 .x'
76
+ version : ' 5 .x'
65
77
- bash : |
66
78
./build.sh --verbosity=diagnostic
67
79
displayName: 'Cake Build'
68
80
- publish : $(Build.SourcesDirectory)/BuildArtifacts/Packages/NuGet
69
81
artifact : NuGet Package Ubuntu
70
82
displayName : ' Publish NuGet package as build artifact'
71
83
72
- # Integration Tests Frosting Windows (.NET Core 3.1)
73
- - job : Test_Frosting_Windows_NetCoreApp31
74
- displayName : Integration Tests Frosting Windows (.NET Core 3.1)
75
- dependsOn : Build_Windows
76
- pool :
77
- vmImage : ' windows-2019'
78
- steps :
79
- - download : current
80
- artifact : NuGet Package Windows
81
- displayName : ' Download build artifact'
82
- - task : CopyFiles@2
83
- inputs :
84
- sourceFolder : $(Pipeline.Workspace)/NuGet Package Windows
85
- targetFolder : $(Build.SourcesDirectory)/BuildArtifacts/Packages/NuGet
86
- displayName : ' Copy build artifact for test run'
87
- - powershell : ./build.ps1 --verbosity=diagnostic
88
- workingDirectory : ./tests/frosting/netcoreapp3.1
89
- displayName : ' Run integration tests'
90
- env :
91
- SYSTEM_ACCESSTOKEN : $(System.AccessToken)
92
-
93
- # Integration Tests Frosting Windows (.NET 5)
94
- - job : Test_Frosting_Windows_Net5
95
- displayName : Integration Tests Frosting Windows (.NET 5)
96
- dependsOn : Build_Windows
97
- pool :
98
- vmImage : ' windows-2019'
99
- steps :
100
- - download : current
101
- artifact : NuGet Package Windows
102
- displayName : ' Download build artifact'
103
- - task : CopyFiles@2
104
- inputs :
105
- sourceFolder : $(Pipeline.Workspace)/NuGet Package Windows
106
- targetFolder : $(Build.SourcesDirectory)/BuildArtifacts/Packages/NuGet
107
- displayName : ' Copy build artifact for test run'
108
- - powershell : ./build.ps1 --verbosity=diagnostic
109
- workingDirectory : ./tests/frosting/net5.0
110
- displayName : ' Run integration tests'
111
- env :
112
- SYSTEM_ACCESSTOKEN : $(System.AccessToken)
113
-
114
84
# Integration Tests Frosting Windows (.NET 6)
115
- - job : Test_Frosting_Windows_Net6
85
+ - job : Test_Frosting_Windows_Net5
116
86
displayName : Integration Tests Frosting Windows (.NET 6)
117
87
dependsOn : Build_Windows
118
88
pool :
119
- vmImage : ' windows-2022 '
89
+ vmImage : ' windows-2019 '
120
90
steps :
121
91
- download : current
122
92
artifact : NuGet Package Windows
@@ -132,12 +102,12 @@ jobs:
132
102
env :
133
103
SYSTEM_ACCESSTOKEN : $(System.AccessToken)
134
104
135
- # Integration Tests Script Runner Windows (.NET Core 3.1 )
136
- - job : Test_Script_Runner_Windows_NetCoreApp31
137
- displayName : Integration Tests Script Runner Windows (.NET Core 3.1 )
105
+ # Integration Tests Frosting Windows (.NET 7 )
106
+ - job : Test_Frosting_Windows_Net7
107
+ displayName : Integration Tests Frosting Windows (.NET 7 )
138
108
dependsOn : Build_Windows
139
109
pool :
140
- vmImage : ' windows-2019 '
110
+ vmImage : ' windows-2022 '
141
111
steps :
142
112
- download : current
143
113
artifact : NuGet Package Windows
@@ -148,14 +118,14 @@ jobs:
148
118
targetFolder : $(Build.SourcesDirectory)/BuildArtifacts/Packages/NuGet
149
119
displayName : ' Copy build artifact for test run'
150
120
- powershell : ./build.ps1 --verbosity=diagnostic
151
- workingDirectory : ./tests/script-runner/netcoreapp3.1
121
+ workingDirectory : ./tests/frosting/net7.0
152
122
displayName : ' Run integration tests'
153
123
env :
154
124
SYSTEM_ACCESSTOKEN : $(System.AccessToken)
155
125
156
- # Integration Tests Script Runner Windows (.NET 5 )
157
- - job : Test_Script_Runner_Windows_Net5
158
- displayName : Integration Tests Script Runner Windows (.NET 5 )
126
+ # Integration Tests Script Runner Windows (.NET 6 )
127
+ - job : Test_Script_Runner_Windows_Net6
128
+ displayName : Integration Tests Script Runner Windows (.NET 6 )
159
129
dependsOn : Build_Windows
160
130
pool :
161
131
vmImage : ' windows-2019'
@@ -169,14 +139,14 @@ jobs:
169
139
targetFolder : $(Build.SourcesDirectory)/BuildArtifacts/Packages/NuGet
170
140
displayName : ' Copy build artifact for test run'
171
141
- powershell : ./build.ps1 --verbosity=diagnostic
172
- workingDirectory : ./tests/script-runner/net5 .0
142
+ workingDirectory : ./tests/script-runner/net6 .0
173
143
displayName : ' Run integration tests'
174
144
env :
175
145
SYSTEM_ACCESSTOKEN : $(System.AccessToken)
176
146
177
- # Integration Tests Script Runner Windows (.NET 6 )
178
- - job : Test_Script_Runner_Windows_Net6
179
- displayName : Integration Tests Script Runner Windows (.NET 6 )
147
+ # Integration Tests Script Runner Windows (.NET 7 )
148
+ - job : Test_Script_Runner_Windows_Net7
149
+ displayName : Integration Tests Script Runner Windows (.NET 7 )
180
150
dependsOn : Build_Windows
181
151
pool :
182
152
vmImage : ' windows-2022'
@@ -190,55 +160,7 @@ jobs:
190
160
targetFolder : $(Build.SourcesDirectory)/BuildArtifacts/Packages/NuGet
191
161
displayName : ' Copy build artifact for test run'
192
162
- powershell : ./build.ps1 --verbosity=diagnostic
193
- workingDirectory : ./tests/script-runner/net6.0
194
- displayName : ' Run integration tests'
195
- env :
196
- SYSTEM_ACCESSTOKEN : $(System.AccessToken)
197
-
198
- # Integration Tests Frosting macOS (.NET Core 3.1)
199
- - job : Test_Frosting_macOS_NetCoreApp31
200
- displayName : Integration Tests Frosting macOS (.NET Core 3.1)
201
- dependsOn : Build_macOS
202
- pool :
203
- vmImage : ' macOS-11'
204
- steps :
205
- - download : current
206
- artifact : NuGet Package macOS
207
- displayName : ' Download build artifact'
208
- - task : CopyFiles@2
209
- inputs :
210
- sourceFolder : $(Pipeline.Workspace)/NuGet Package macOS
211
- targetFolder : $(Build.SourcesDirectory)/BuildArtifacts/Packages/NuGet
212
- displayName : ' Copy build artifact for test run'
213
- - task : UseDotNet@2
214
- inputs :
215
- version : ' 3.x'
216
- - bash : ./build.sh --verbosity=diagnostic
217
- workingDirectory : ./tests/frosting/netcoreapp3.1
218
- displayName : ' Run integration tests'
219
- env :
220
- SYSTEM_ACCESSTOKEN : $(System.AccessToken)
221
-
222
- # Integration Tests Frosting macOS (.NET 5)
223
- - job : Test_Frosting_macOS_Net5
224
- displayName : Integration Tests Frosting macOS (.NET 5)
225
- dependsOn : Build_macOS
226
- pool :
227
- vmImage : ' macOS-11'
228
- steps :
229
- - download : current
230
- artifact : NuGet Package macOS
231
- displayName : ' Download build artifact'
232
- - task : CopyFiles@2
233
- inputs :
234
- sourceFolder : $(Pipeline.Workspace)/NuGet Package macOS
235
- targetFolder : $(Build.SourcesDirectory)/BuildArtifacts/Packages/NuGet
236
- displayName : ' Copy build artifact for test run'
237
- - task : UseDotNet@2
238
- inputs :
239
- version : ' 5.x'
240
- - bash : ./build.sh --verbosity=diagnostic
241
- workingDirectory : ./tests/frosting/net5.0
163
+ workingDirectory : ./tests/script-runner/net7.0
242
164
displayName : ' Run integration tests'
243
165
env :
244
166
SYSTEM_ACCESSTOKEN : $(System.AccessToken)
@@ -267,9 +189,9 @@ jobs:
267
189
env :
268
190
SYSTEM_ACCESSTOKEN : $(System.AccessToken)
269
191
270
- # Integration Tests Script Runner macOS (.NET Core 3.1 )
271
- - job : Test_Script_Runner_macOS_NetCoreApp31
272
- displayName : Integration Tests Script Runner macOS (.NET Core 3.1 )
192
+ # Integration Tests Frosting macOS (.NET 7 )
193
+ - job : Test_Frosting_macOS_Net7
194
+ displayName : Integration Tests Frosting macOS (.NET 7 )
273
195
dependsOn : Build_macOS
274
196
pool :
275
197
vmImage : ' macOS-11'
@@ -284,33 +206,9 @@ jobs:
284
206
displayName : ' Copy build artifact for test run'
285
207
- task : UseDotNet@2
286
208
inputs :
287
- version : ' 3 .x'
209
+ version : ' 7 .x'
288
210
- bash : ./build.sh --verbosity=diagnostic
289
- workingDirectory : ./tests/script-runner/netcoreapp3.1
290
- displayName : ' Run integration tests'
291
- env :
292
- SYSTEM_ACCESSTOKEN : $(System.AccessToken)
293
-
294
- # Integration Tests Script Runner macOS (.NET 5)
295
- - job : Test_Script_Runner_macOS_Net5
296
- displayName : Integration Tests Script Runner macOS (.NET 5)
297
- dependsOn : Build_macOS
298
- pool :
299
- vmImage : ' macOS-11'
300
- steps :
301
- - download : current
302
- artifact : NuGet Package macOS
303
- displayName : ' Download build artifact'
304
- - task : CopyFiles@2
305
- inputs :
306
- sourceFolder : $(Pipeline.Workspace)/NuGet Package macOS
307
- targetFolder : $(Build.SourcesDirectory)/BuildArtifacts/Packages/NuGet
308
- displayName : ' Copy build artifact for test run'
309
- - task : UseDotNet@2
310
- inputs :
311
- version : ' 5.x'
312
- - bash : ./build.sh --verbosity=diagnostic
313
- workingDirectory : ./tests/script-runner/net5.0
211
+ workingDirectory : ./tests/frosting/net7.0
314
212
displayName : ' Run integration tests'
315
213
env :
316
214
SYSTEM_ACCESSTOKEN : $(System.AccessToken)
@@ -339,50 +237,26 @@ jobs:
339
237
env :
340
238
SYSTEM_ACCESSTOKEN : $(System.AccessToken)
341
239
342
- # Integration Tests Frosting Ubuntu (.NET Core 3.1)
343
- - job : Test_Frosting_Ubuntu_NetCoreApp31
344
- displayName : Integration Tests Frosting Ubuntu (.NET Core 3.1)
345
- dependsOn : Build_Ubuntu
346
- pool :
347
- vmImage : ' ubuntu-20.04'
348
- steps :
349
- - download : current
350
- artifact : NuGet Package Ubuntu
351
- displayName : ' Download build artifact'
352
- - task : CopyFiles@2
353
- inputs :
354
- sourceFolder : $(Pipeline.Workspace)/NuGet Package Ubuntu
355
- targetFolder : $(Build.SourcesDirectory)/BuildArtifacts/Packages/NuGet
356
- displayName : ' Copy build artifact for test run'
357
- - task : UseDotNet@2
358
- inputs :
359
- version : ' 3.x'
360
- - bash : ./build.sh --verbosity=diagnostic
361
- workingDirectory : ./tests/frosting/netcoreapp3.1
362
- displayName : ' Run integration tests'
363
- env :
364
- SYSTEM_ACCESSTOKEN : $(System.AccessToken)
365
-
366
- # Integration Tests Frosting Ubuntu (.NET 5)
367
- - job : Test_Frosting_Ubuntu_Net5
368
- displayName : Integration Tests Frosting Ubuntu (.NET 5)
369
- dependsOn : Build_Ubuntu
240
+ # Integration Tests Script Runner macOS (.NET 7)
241
+ - job : Test_Script_Runner_macOS_Net7
242
+ displayName : Integration Tests Script Runner macOS (.NET 7)
243
+ dependsOn : Build_macOS
370
244
pool :
371
- vmImage : ' ubuntu-20.04 '
245
+ vmImage : ' macOS-11 '
372
246
steps :
373
247
- download : current
374
- artifact : NuGet Package Ubuntu
248
+ artifact : NuGet Package macOS
375
249
displayName : ' Download build artifact'
376
250
- task : CopyFiles@2
377
251
inputs :
378
- sourceFolder : $(Pipeline.Workspace)/NuGet Package Ubuntu
252
+ sourceFolder : $(Pipeline.Workspace)/NuGet Package macOS
379
253
targetFolder : $(Build.SourcesDirectory)/BuildArtifacts/Packages/NuGet
380
254
displayName : ' Copy build artifact for test run'
381
255
- task : UseDotNet@2
382
256
inputs :
383
- version : ' 5 .x'
257
+ version : ' 7 .x'
384
258
- bash : ./build.sh --verbosity=diagnostic
385
- workingDirectory : ./tests/frosting/net5 .0
259
+ workingDirectory : ./tests/script-runner/net7 .0
386
260
displayName : ' Run integration tests'
387
261
env :
388
262
SYSTEM_ACCESSTOKEN : $(System.AccessToken)
@@ -411,9 +285,9 @@ jobs:
411
285
env :
412
286
SYSTEM_ACCESSTOKEN : $(System.AccessToken)
413
287
414
- # Integration Tests Script Runner Ubuntu (.NET Core 3.1 )
415
- - job : Test_Script_Runner_Ubuntu_NetCoreApp31
416
- displayName : Integration Tests Script Runner Ubuntu (.NET Core 3.1 )
288
+ # Integration Tests Frosting Ubuntu (.NET 7 )
289
+ - job : Test_Frosting_Ubuntu_Net7
290
+ displayName : Integration Tests Frosting Ubuntu (.NET 7 )
417
291
dependsOn : Build_Ubuntu
418
292
pool :
419
293
vmImage : ' ubuntu-20.04'
@@ -428,16 +302,16 @@ jobs:
428
302
displayName : ' Copy build artifact for test run'
429
303
- task : UseDotNet@2
430
304
inputs :
431
- version : ' 3 .x'
305
+ version : ' 7 .x'
432
306
- bash : ./build.sh --verbosity=diagnostic
433
- workingDirectory : ./tests/script-runner/netcoreapp3.1
307
+ workingDirectory : ./tests/frosting/net7.0
434
308
displayName : ' Run integration tests'
435
309
env :
436
310
SYSTEM_ACCESSTOKEN : $(System.AccessToken)
437
311
438
- # Integration Tests Script Runner Ubuntu (.NET 5 )
439
- - job : Test_Script_Runner_Ubuntu_Net5
440
- displayName : Integration Tests Script Runner Ubuntu (.NET 5 )
312
+ # Integration Tests Script Runner Ubuntu (.NET 6 )
313
+ - job : Test_Script_Runner_Ubuntu_Net6
314
+ displayName : Integration Tests Script Runner Ubuntu (.NET 6 )
441
315
dependsOn : Build_Ubuntu
442
316
pool :
443
317
vmImage : ' ubuntu-20.04'
@@ -452,16 +326,16 @@ jobs:
452
326
displayName : ' Copy build artifact for test run'
453
327
- task : UseDotNet@2
454
328
inputs :
455
- version : ' 5 .x'
329
+ version : ' 6 .x'
456
330
- bash : ./build.sh --verbosity=diagnostic
457
- workingDirectory : ./tests/script-runner/net5 .0
331
+ workingDirectory : ./tests/script-runner/net6 .0
458
332
displayName : ' Run integration tests'
459
333
env :
460
334
SYSTEM_ACCESSTOKEN : $(System.AccessToken)
461
335
462
- # Integration Tests Script Runner Ubuntu (.NET 6 )
463
- - job : Test_Script_Runner_Ubuntu_Net6
464
- displayName : Integration Tests Script Runner Ubuntu (.NET 6 )
336
+ # Integration Tests Script Runner Ubuntu (.NET 7 )
337
+ - job : Test_Script_Runner_Ubuntu_Net7
338
+ displayName : Integration Tests Script Runner Ubuntu (.NET 7 )
465
339
dependsOn : Build_Ubuntu
466
340
pool :
467
341
vmImage : ' ubuntu-20.04'
@@ -476,9 +350,9 @@ jobs:
476
350
displayName : ' Copy build artifact for test run'
477
351
- task : UseDotNet@2
478
352
inputs :
479
- version : ' 6 .x'
353
+ version : ' 7 .x'
480
354
- bash : ./build.sh --verbosity=diagnostic
481
- workingDirectory : ./tests/script-runner/net6 .0
355
+ workingDirectory : ./tests/script-runner/net7 .0
482
356
displayName : ' Run integration tests'
483
357
env :
484
358
SYSTEM_ACCESSTOKEN : $(System.AccessToken)
0 commit comments