9
9
vmImage : windows-latest
10
10
timeoutInMinutes : 240
11
11
steps :
12
- - powershell : |
13
- if ("$GITFILESHAREPWD" -ne "" -and "$GITFILESHAREPWD" -ne "`$`(gitfileshare.pwd)") {
14
- net use s: \\gitfileshare.file.core.windows.net\test-cache "$GITFILESHAREPWD" /user:AZURE\gitfileshare /persistent:no
15
- cmd /c mklink /d "$(Build.SourcesDirectory)\test-cache" S:\
16
- }
17
- displayName: 'Mount test-cache'
18
- env:
19
- GITFILESHAREPWD: $(gitfileshare.pwd)
20
12
- powershell : |
21
13
$urlbase = "https://dev.azure.com/git-for-windows/git/_apis/build/builds"
22
14
$id = ((Invoke-WebRequest -UseBasicParsing "${urlbase}?definitions=22&statusFilter=completed&resultFilter=succeeded&`$top=1").content | ConvertFrom-JSON).value[0].id
49
41
inputs :
50
42
artifactName : ' git-sdk-64-minimal'
51
43
targetPath : ' $(Build.SourcesDirectory)\git-sdk-64-minimal'
52
- - powershell : |
53
- if ("$GITFILESHAREPWD" -ne "" -and "$GITFILESHAREPWD" -ne "`$`(gitfileshare.pwd)") {
54
- cmd /c rmdir "$(Build.SourcesDirectory)\test-cache"
55
- }
56
- displayName: 'Unmount test-cache'
57
- condition: true
58
- env:
59
- GITFILESHAREPWD: $(gitfileshare.pwd)
60
44
61
45
- job : windows_test
62
46
displayName : Windows Test
68
52
strategy :
69
53
parallel : 10
70
54
steps :
71
- - powershell : |
72
- if ("$GITFILESHAREPWD" -ne "" -and "$GITFILESHAREPWD" -ne "`$`(gitfileshare.pwd)") {
73
- net use s: \\gitfileshare.file.core.windows.net\test-cache "$GITFILESHAREPWD" /user:AZURE\gitfileshare /persistent:no
74
- cmd /c mklink /d "$(Build.SourcesDirectory)\test-cache" S:\
75
- }
76
- displayName: 'Mount test-cache'
77
- env:
78
- GITFILESHAREPWD: $(gitfileshare.pwd)
79
55
- task : DownloadPipelineArtifact@0
80
56
displayName : ' Download Pipeline Artifact: test artifacts'
81
57
inputs :
@@ -109,14 +85,6 @@ jobs:
109
85
MSYSTEM: MINGW64
110
86
NO_SVN_TESTS: 1
111
87
GIT_TEST_SKIP_REBASE_P: 1
112
- - powershell : |
113
- if ("$GITFILESHAREPWD" -ne "" -and "$GITFILESHAREPWD" -ne "`$`(gitfileshare.pwd)") {
114
- cmd /c rmdir "$(Build.SourcesDirectory)\test-cache"
115
- }
116
- displayName: 'Unmount test-cache'
117
- condition: true
118
- env:
119
- GITFILESHAREPWD: $(gitfileshare.pwd)
120
88
- task : PublishTestResults@2
121
89
displayName : ' Publish Test Results **/TEST-*.xml'
122
90
inputs :
@@ -139,14 +107,6 @@ jobs:
139
107
vmImage : windows-latest
140
108
timeoutInMinutes : 240
141
109
steps :
142
- - powershell : |
143
- if ("$GITFILESHAREPWD" -ne "" -and "$GITFILESHAREPWD" -ne "`$`(gitfileshare.pwd)") {
144
- net use s: \\gitfileshare.file.core.windows.net\test-cache "$GITFILESHAREPWD" /user:AZURE\gitfileshare /persistent:no
145
- cmd /c mklink /d "$(Build.SourcesDirectory)\test-cache" S:\
146
- }
147
- displayName: 'Mount test-cache'
148
- env:
149
- GITFILESHAREPWD: $(gitfileshare.pwd)
150
110
- powershell : |
151
111
$urlbase = "https://dev.azure.com/git-for-windows/git/_apis/build/builds"
152
112
$id = ((Invoke-WebRequest -UseBasicParsing "${urlbase}?definitions=22&statusFilter=completed&resultFilter=succeeded&`$top=1").content | ConvertFrom-JSON).value[0].id
@@ -215,14 +175,6 @@ jobs:
215
175
inputs :
216
176
artifactName : ' vs-artifacts'
217
177
targetPath : ' $(Build.SourcesDirectory)\artifacts'
218
- - powershell : |
219
- if ("$GITFILESHAREPWD" -ne "" -and "$GITFILESHAREPWD" -ne "`$`(gitfileshare.pwd)") {
220
- cmd /c rmdir "$(Build.SourcesDirectory)\test-cache"
221
- }
222
- displayName: 'Unmount test-cache'
223
- condition: true
224
- env:
225
- GITFILESHAREPWD: $(gitfileshare.pwd)
226
178
227
179
- job : vs_test
228
180
displayName : Visual Studio Test
@@ -234,14 +186,6 @@ jobs:
234
186
strategy :
235
187
parallel : 10
236
188
steps :
237
- - powershell : |
238
- if ("$GITFILESHAREPWD" -ne "" -and "$GITFILESHAREPWD" -ne "`$`(gitfileshare.pwd)") {
239
- net use s: \\gitfileshare.file.core.windows.net\test-cache "$GITFILESHAREPWD" /user:AZURE\gitfileshare /persistent:no
240
- cmd /c mklink /d "$(Build.SourcesDirectory)\test-cache" S:\
241
- }
242
- displayName: 'Mount test-cache'
243
- env:
244
- GITFILESHAREPWD: $(gitfileshare.pwd)
245
189
- task : DownloadPipelineArtifact@0
246
190
displayName : ' Download Pipeline Artifact: VS test artifacts'
247
191
inputs :
@@ -271,14 +215,6 @@ jobs:
271
215
MSYSTEM: MINGW64
272
216
NO_SVN_TESTS: 1
273
217
GIT_TEST_SKIP_REBASE_P: 1
274
- - powershell : |
275
- if ("$GITFILESHAREPWD" -ne "" -and "$GITFILESHAREPWD" -ne "`$`(gitfileshare.pwd)") {
276
- cmd /c rmdir "$(Build.SourcesDirectory)\test-cache"
277
- }
278
- displayName: 'Unmount test-cache'
279
- condition: true
280
- env:
281
- GITFILESHAREPWD: $(gitfileshare.pwd)
282
218
- task : PublishTestResults@2
283
219
displayName : ' Publish Test Results **/TEST-*.xml'
284
220
inputs :
@@ -301,20 +237,14 @@ jobs:
301
237
vmImage : ubuntu-latest
302
238
steps :
303
239
- bash : |
304
- test "$GITFILESHAREPWD" = '$(gitfileshare.pwd)' || ci/mount-fileshare.sh //gitfileshare.file.core.windows.net/test-cache gitfileshare "$GITFILESHAREPWD" "$HOME/test-cache" || exit 1
305
-
306
240
export CC=clang || exit 1
307
241
308
242
ci/install-dependencies.sh || exit 1
309
243
ci/run-build-and-tests.sh || {
310
244
ci/print-test-failures.sh
311
245
exit 1
312
246
}
313
-
314
- test "$GITFILESHAREPWD" = '$(gitfileshare.pwd)' || sudo umount "$HOME/test-cache" || exit 1
315
247
displayName: 'ci/run-build-and-tests.sh'
316
- env:
317
- GITFILESHAREPWD: $(gitfileshare.pwd)
318
248
- task : PublishTestResults@2
319
249
displayName : ' Publish Test Results **/TEST-*.xml'
320
250
inputs :
@@ -337,18 +267,12 @@ jobs:
337
267
vmImage : ubuntu-latest
338
268
steps :
339
269
- bash : |
340
- test "$GITFILESHAREPWD" = '$(gitfileshare.pwd)' || ci/mount-fileshare.sh //gitfileshare.file.core.windows.net/test-cache gitfileshare "$GITFILESHAREPWD" "$HOME/test-cache" || exit 1
341
-
342
270
ci/install-dependencies.sh || exit 1
343
271
ci/run-build-and-tests.sh || {
344
272
ci/print-test-failures.sh
345
273
exit 1
346
274
}
347
-
348
- test "$GITFILESHAREPWD" = '$(gitfileshare.pwd)' || sudo umount "$HOME/test-cache" || exit 1
349
275
displayName: 'ci/run-build-and-tests.sh'
350
- env:
351
- GITFILESHAREPWD: $(gitfileshare.pwd)
352
276
- task : PublishTestResults@2
353
277
displayName : ' Publish Test Results **/TEST-*.xml'
354
278
inputs :
@@ -371,20 +295,14 @@ jobs:
371
295
vmImage : macOS-latest
372
296
steps :
373
297
- bash : |
374
- test "$GITFILESHAREPWD" = '$(gitfileshare.pwd)' || ci/mount-fileshare.sh //gitfileshare.file.core.windows.net/test-cache gitfileshare "$GITFILESHAREPWD" "$HOME/test-cache" || exit 1
375
-
376
298
export CC=clang
377
299
378
300
ci/install-dependencies.sh || exit 1
379
301
ci/run-build-and-tests.sh || {
380
302
ci/print-test-failures.sh
381
303
exit 1
382
304
}
383
-
384
- test "$GITFILESHAREPWD" = '$(gitfileshare.pwd)' || umount "$HOME/test-cache" || exit 1
385
305
displayName: 'ci/run-build-and-tests.sh'
386
- env:
387
- GITFILESHAREPWD: $(gitfileshare.pwd)
388
306
- task : PublishTestResults@2
389
307
displayName : ' Publish Test Results **/TEST-*.xml'
390
308
inputs :
@@ -407,18 +325,12 @@ jobs:
407
325
vmImage : macOS-latest
408
326
steps :
409
327
- bash : |
410
- test "$GITFILESHAREPWD" = '$(gitfileshare.pwd)' || ci/mount-fileshare.sh //gitfileshare.file.core.windows.net/test-cache gitfileshare "$GITFILESHAREPWD" "$HOME/test-cache" || exit 1
411
-
412
328
ci/install-dependencies.sh || exit 1
413
329
ci/run-build-and-tests.sh || {
414
330
ci/print-test-failures.sh
415
331
exit 1
416
332
}
417
-
418
- test "$GITFILESHAREPWD" = '$(gitfileshare.pwd)' || umount "$HOME/test-cache" || exit 1
419
333
displayName: 'ci/run-build-and-tests.sh'
420
- env:
421
- GITFILESHAREPWD: $(gitfileshare.pwd)
422
334
- task : PublishTestResults@2
423
335
displayName : ' Publish Test Results **/TEST-*.xml'
424
336
inputs :
@@ -441,19 +353,14 @@ jobs:
441
353
vmImage : ubuntu-latest
442
354
steps :
443
355
- bash : |
444
- test "$GITFILESHAREPWD" = '$(gitfileshare.pwd)' || ci/mount-fileshare.sh //gitfileshare.file.core.windows.net/test-cache gitfileshare "$GITFILESHAREPWD" "$HOME/test-cache" || exit 1
445
-
446
356
res=0
447
357
sudo AGENT_OS="$AGENT_OS" BUILD_BUILDNUMBER="$BUILD_BUILDNUMBER" BUILD_REPOSITORY_URI="$BUILD_REPOSITORY_URI" BUILD_SOURCEBRANCH="$BUILD_SOURCEBRANCH" BUILD_SOURCEVERSION="$BUILD_SOURCEVERSION" SYSTEM_PHASENAME="$SYSTEM_PHASENAME" SYSTEM_TASKDEFINITIONSURI="$SYSTEM_TASKDEFINITIONSURI" SYSTEM_TEAMPROJECT="$SYSTEM_TEAMPROJECT" CC=$CC MAKEFLAGS="$MAKEFLAGS" jobname=Linux32 bash -lxc ci/run-docker.sh || res=1
448
358
449
359
sudo chmod a+r t/out/TEST-*.xml
450
360
test ! -d t/failed-test-artifacts || sudo chmod a+r t/failed-test-artifacts
451
361
452
- test "$GITFILESHAREPWD" = '$(gitfileshare.pwd)' || sudo umount "$HOME/test-cache" || res=1
453
362
exit $res
454
363
displayName: 'jobname=Linux32 ci/run-docker.sh'
455
- env:
456
- GITFILESHAREPWD: $(gitfileshare.pwd)
457
364
- task : PublishTestResults@2
458
365
displayName : ' Publish Test Results **/TEST-*.xml'
459
366
inputs :
@@ -476,19 +383,13 @@ jobs:
476
383
vmImage : ubuntu-latest
477
384
steps :
478
385
- bash : |
479
- test "$GITFILESHAREPWD" = '$(gitfileshare.pwd)' || ci/mount-fileshare.sh //gitfileshare.file.core.windows.net/test-cache gitfileshare "$GITFILESHAREPWD" "$HOME/test-cache" || exit 1
480
-
481
386
sudo apt-get update &&
482
387
sudo apt-get install -y coccinelle libcurl4-openssl-dev libssl-dev libexpat-dev gettext &&
483
388
484
389
export jobname=StaticAnalysis &&
485
390
486
391
ci/run-static-analysis.sh || exit 1
487
-
488
- test "$GITFILESHAREPWD" = '$(gitfileshare.pwd)' || sudo umount "$HOME/test-cache" || exit 1
489
392
displayName: 'ci/run-static-analysis.sh'
490
- env:
491
- GITFILESHAREPWD: $(gitfileshare.pwd)
492
393
493
394
- job : documentation
494
395
displayName : Documentation
@@ -497,17 +398,11 @@ jobs:
497
398
vmImage : ubuntu-latest
498
399
steps :
499
400
- bash : |
500
- test "$GITFILESHAREPWD" = '$(gitfileshare.pwd)' || ci/mount-fileshare.sh //gitfileshare.file.core.windows.net/test-cache gitfileshare "$GITFILESHAREPWD" "$HOME/test-cache" || exit 1
501
-
502
401
sudo apt-get update &&
503
402
sudo apt-get install -y asciidoc xmlto asciidoctor docbook-xsl-ns &&
504
403
505
404
export ALREADY_HAVE_ASCIIDOCTOR=yes. &&
506
405
export jobname=Documentation &&
507
406
508
407
ci/test-documentation.sh || exit 1
509
-
510
- test "$GITFILESHAREPWD" = '$(gitfileshare.pwd)' || sudo umount "$HOME/test-cache" || exit 1
511
408
displayName: 'ci/test-documentation.sh'
512
- env:
513
- GITFILESHAREPWD: $(gitfileshare.pwd)
0 commit comments