99 vmImage : windows-latest
1010 timeoutInMinutes : 240
1111 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)
2012 - powershell : |
2113 $urlbase = "https://dev.azure.com/git-for-windows/git/_apis/build/builds"
2214 $id = ((Invoke-WebRequest -UseBasicParsing "${urlbase}?definitions=22&statusFilter=completed&resultFilter=succeeded&`$top=1").content | ConvertFrom-JSON).value[0].id
4941 inputs :
5042 artifactName : ' git-sdk-64-minimal'
5143 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)
6044
6145- job : windows_test
6246 displayName : Windows Test
6852 strategy :
6953 parallel : 10
7054 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)
7955 - task : DownloadPipelineArtifact@0
8056 displayName : ' Download Pipeline Artifact: test artifacts'
8157 inputs :
@@ -109,14 +85,6 @@ jobs:
10985 MSYSTEM: MINGW64
11086 NO_SVN_TESTS: 1
11187 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)
12088 - task : PublishTestResults@2
12189 displayName : ' Publish Test Results **/TEST-*.xml'
12290 inputs :
@@ -139,14 +107,6 @@ jobs:
139107 vmImage : windows-latest
140108 timeoutInMinutes : 240
141109 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)
150110 - powershell : |
151111 $urlbase = "https://dev.azure.com/git-for-windows/git/_apis/build/builds"
152112 $id = ((Invoke-WebRequest -UseBasicParsing "${urlbase}?definitions=22&statusFilter=completed&resultFilter=succeeded&`$top=1").content | ConvertFrom-JSON).value[0].id
@@ -215,14 +175,6 @@ jobs:
215175 inputs :
216176 artifactName : ' vs-artifacts'
217177 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)
226178
227179- job : vs_test
228180 displayName : Visual Studio Test
@@ -234,14 +186,6 @@ jobs:
234186 strategy :
235187 parallel : 10
236188 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)
245189 - task : DownloadPipelineArtifact@0
246190 displayName : ' Download Pipeline Artifact: VS test artifacts'
247191 inputs :
@@ -271,14 +215,6 @@ jobs:
271215 MSYSTEM: MINGW64
272216 NO_SVN_TESTS: 1
273217 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)
282218 - task : PublishTestResults@2
283219 displayName : ' Publish Test Results **/TEST-*.xml'
284220 inputs :
@@ -301,20 +237,14 @@ jobs:
301237 vmImage : ubuntu-latest
302238 steps :
303239 - 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-
306240 export CC=clang || exit 1
307241
308242 ci/install-dependencies.sh || exit 1
309243 ci/run-build-and-tests.sh || {
310244 ci/print-test-failures.sh
311245 exit 1
312246 }
313-
314- test "$GITFILESHAREPWD" = '$(gitfileshare.pwd)' || sudo umount "$HOME/test-cache" || exit 1
315247 displayName: 'ci/run-build-and-tests.sh'
316- env:
317- GITFILESHAREPWD: $(gitfileshare.pwd)
318248 - task : PublishTestResults@2
319249 displayName : ' Publish Test Results **/TEST-*.xml'
320250 inputs :
@@ -337,18 +267,12 @@ jobs:
337267 vmImage : ubuntu-latest
338268 steps :
339269 - 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-
342270 ci/install-dependencies.sh || exit 1
343271 ci/run-build-and-tests.sh || {
344272 ci/print-test-failures.sh
345273 exit 1
346274 }
347-
348- test "$GITFILESHAREPWD" = '$(gitfileshare.pwd)' || sudo umount "$HOME/test-cache" || exit 1
349275 displayName: 'ci/run-build-and-tests.sh'
350- env:
351- GITFILESHAREPWD: $(gitfileshare.pwd)
352276 - task : PublishTestResults@2
353277 displayName : ' Publish Test Results **/TEST-*.xml'
354278 inputs :
@@ -371,20 +295,14 @@ jobs:
371295 vmImage : macOS-latest
372296 steps :
373297 - 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-
376298 export CC=clang
377299
378300 ci/install-dependencies.sh || exit 1
379301 ci/run-build-and-tests.sh || {
380302 ci/print-test-failures.sh
381303 exit 1
382304 }
383-
384- test "$GITFILESHAREPWD" = '$(gitfileshare.pwd)' || umount "$HOME/test-cache" || exit 1
385305 displayName: 'ci/run-build-and-tests.sh'
386- env:
387- GITFILESHAREPWD: $(gitfileshare.pwd)
388306 - task : PublishTestResults@2
389307 displayName : ' Publish Test Results **/TEST-*.xml'
390308 inputs :
@@ -407,18 +325,12 @@ jobs:
407325 vmImage : macOS-latest
408326 steps :
409327 - 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-
412328 ci/install-dependencies.sh || exit 1
413329 ci/run-build-and-tests.sh || {
414330 ci/print-test-failures.sh
415331 exit 1
416332 }
417-
418- test "$GITFILESHAREPWD" = '$(gitfileshare.pwd)' || umount "$HOME/test-cache" || exit 1
419333 displayName: 'ci/run-build-and-tests.sh'
420- env:
421- GITFILESHAREPWD: $(gitfileshare.pwd)
422334 - task : PublishTestResults@2
423335 displayName : ' Publish Test Results **/TEST-*.xml'
424336 inputs :
@@ -441,19 +353,14 @@ jobs:
441353 vmImage : ubuntu-latest
442354 steps :
443355 - 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-
446356 res=0
447357 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
448358
449359 sudo chmod a+r t/out/TEST-*.xml
450360 test ! -d t/failed-test-artifacts || sudo chmod a+r t/failed-test-artifacts
451361
452- test "$GITFILESHAREPWD" = '$(gitfileshare.pwd)' || sudo umount "$HOME/test-cache" || res=1
453362 exit $res
454363 displayName: 'jobname=Linux32 ci/run-docker.sh'
455- env:
456- GITFILESHAREPWD: $(gitfileshare.pwd)
457364 - task : PublishTestResults@2
458365 displayName : ' Publish Test Results **/TEST-*.xml'
459366 inputs :
@@ -476,19 +383,13 @@ jobs:
476383 vmImage : ubuntu-latest
477384 steps :
478385 - 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-
481386 sudo apt-get update &&
482387 sudo apt-get install -y coccinelle libcurl4-openssl-dev libssl-dev libexpat-dev gettext &&
483388
484389 export jobname=StaticAnalysis &&
485390
486391 ci/run-static-analysis.sh || exit 1
487-
488- test "$GITFILESHAREPWD" = '$(gitfileshare.pwd)' || sudo umount "$HOME/test-cache" || exit 1
489392 displayName: 'ci/run-static-analysis.sh'
490- env:
491- GITFILESHAREPWD: $(gitfileshare.pwd)
492393
493394 - job : documentation
494395 displayName : Documentation
@@ -497,17 +398,11 @@ jobs:
497398 vmImage : ubuntu-latest
498399 steps :
499400 - 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-
502401 sudo apt-get update &&
503402 sudo apt-get install -y asciidoc xmlto asciidoctor docbook-xsl-ns &&
504403
505404 export ALREADY_HAVE_ASCIIDOCTOR=yes. &&
506405 export jobname=Documentation &&
507406
508407 ci/test-documentation.sh || exit 1
509-
510- test "$GITFILESHAREPWD" = '$(gitfileshare.pwd)' || sudo umount "$HOME/test-cache" || exit 1
511408 displayName: 'ci/test-documentation.sh'
512- env:
513- GITFILESHAREPWD: $(gitfileshare.pwd)
0 commit comments