@@ -3,39 +3,6 @@ resources:
3
3
fetchDepth : 1
4
4
5
5
phases :
6
- - phase : linux_clang
7
- displayName : linux-clang
8
- condition : succeeded()
9
- queue :
10
- name : Hosted Ubuntu 1604
11
- steps :
12
- - bash : |
13
- test "$GITFILESHAREPWD" = '$(gitfileshare.pwd)' || ci/mount-fileshare.sh //gitfileshare.file.core.windows.net/test-cache gitfileshare "$GITFILESHAREPWD" "$HOME/test-cache" || exit 1
14
-
15
- sudo apt-get update &&
16
- sudo apt-get -y install git gcc make libssl-dev libcurl4-openssl-dev libexpat-dev tcl tk gettext git-email zlib1g-dev apache2-bin &&
17
-
18
- export CC=clang || exit 1
19
-
20
- ci/install-dependencies.sh || exit 1
21
- ci/run-build-and-tests.sh || {
22
- ci/print-test-failures.sh
23
- exit 1
24
- }
25
-
26
- test "$GITFILESHAREPWD" = '$(gitfileshare.pwd)' || sudo umount "$HOME/test-cache" || exit 1
27
- displayName: 'ci/run-build-and-tests.sh'
28
- env:
29
- GITFILESHAREPWD: $(gitfileshare.pwd)
30
- - task : PublishTestResults@2
31
- displayName : ' Publish Test Results **/TEST-*.xml'
32
- inputs :
33
- mergeTestResults : true
34
- testRunTitle : ' linux-clang'
35
- platform : Linux
36
- publishRunAttachments : false
37
- condition : succeededOrFailed()
38
-
39
6
- phase : linux_gcc
40
7
displayName : linux-gcc
41
8
condition : succeeded()
@@ -66,254 +33,3 @@ phases:
66
33
platform : Linux
67
34
publishRunAttachments : false
68
35
condition : succeededOrFailed()
69
-
70
- - phase : osx_clang
71
- displayName : osx-clang
72
- condition : succeeded()
73
- queue :
74
- name : Hosted macOS
75
- steps :
76
- - bash : |
77
- test "$GITFILESHAREPWD" = '$(gitfileshare.pwd)' || ci/mount-fileshare.sh //gitfileshare.file.core.windows.net/test-cache gitfileshare "$GITFILESHAREPWD" "$HOME/test-cache" || exit 1
78
-
79
- export CC=clang
80
-
81
- ci/install-dependencies.sh || exit 1
82
- ci/run-build-and-tests.sh || {
83
- ci/print-test-failures.sh
84
- exit 1
85
- }
86
-
87
- test "$GITFILESHAREPWD" = '$(gitfileshare.pwd)' || umount "$HOME/test-cache" || exit 1
88
- displayName: 'ci/run-build-and-tests.sh'
89
- env:
90
- GITFILESHAREPWD: $(gitfileshare.pwd)
91
- - task : PublishTestResults@2
92
- displayName : ' Publish Test Results **/TEST-*.xml'
93
- inputs :
94
- mergeTestResults : true
95
- testRunTitle : ' osx-clang'
96
- platform : macOS
97
- publishRunAttachments : false
98
- condition : succeededOrFailed()
99
-
100
- - phase : osx_gcc
101
- displayName : osx-gcc
102
- condition : succeeded()
103
- queue :
104
- name : Hosted macOS
105
- steps :
106
- - bash : |
107
- test "$GITFILESHAREPWD" = '$(gitfileshare.pwd)' || ci/mount-fileshare.sh //gitfileshare.file.core.windows.net/test-cache gitfileshare "$GITFILESHAREPWD" "$HOME/test-cache" || exit 1
108
-
109
- ci/install-dependencies.sh || exit 1
110
- ci/run-build-and-tests.sh || {
111
- ci/print-test-failures.sh
112
- exit 1
113
- }
114
-
115
- test "$GITFILESHAREPWD" = '$(gitfileshare.pwd)' || umount "$HOME/test-cache" || exit 1
116
- displayName: 'ci/run-build-and-tests.sh'
117
- env:
118
- GITFILESHAREPWD: $(gitfileshare.pwd)
119
- - task : PublishTestResults@2
120
- displayName : ' Publish Test Results **/TEST-*.xml'
121
- inputs :
122
- mergeTestResults : true
123
- testRunTitle : ' osx-gcc'
124
- platform : macOS
125
- publishRunAttachments : false
126
- condition : succeededOrFailed()
127
-
128
- - phase : gettext_poison
129
- displayName : GETTEXT_POISON
130
- condition : succeeded()
131
- queue :
132
- name : Hosted Ubuntu 1604
133
- steps :
134
- - bash : |
135
- test "$GITFILESHAREPWD" = '$(gitfileshare.pwd)' || ci/mount-fileshare.sh //gitfileshare.file.core.windows.net/test-cache gitfileshare "$GITFILESHAREPWD" "$HOME/test-cache" || exit 1
136
-
137
- sudo apt-get update &&
138
- sudo apt-get -y install git gcc make libssl-dev libcurl4-openssl-dev libexpat-dev tcl tk gettext git-email zlib1g-dev &&
139
-
140
- export jobname=GETTEXT_POISON || exit 1
141
-
142
- ci/run-build-and-tests.sh || {
143
- ci/print-test-failures.sh
144
- exit 1
145
- }
146
-
147
- test "$GITFILESHAREPWD" = '$(gitfileshare.pwd)' || sudo umount "$HOME/test-cache" || exit 1
148
- displayName: 'ci/run-build-and-tests.sh'
149
- env:
150
- GITFILESHAREPWD: $(gitfileshare.pwd)
151
- - task : PublishTestResults@2
152
- displayName : ' Publish Test Results **/TEST-*.xml'
153
- inputs :
154
- mergeTestResults : true
155
- testRunTitle : ' gettext-poison'
156
- platform : Linux
157
- publishRunAttachments : false
158
- condition : succeededOrFailed()
159
-
160
- - phase : windows
161
- displayName : Windows
162
- condition : succeeded()
163
- queue :
164
- name : Hosted VS2017
165
- timeoutInMinutes : 240
166
- steps :
167
- - powershell : |
168
- # Helper to check the error level of the latest command (exit with error when appropriate)
169
- function c() { if (!$?) { exit(1) } }
170
-
171
- if ("$GITFILESHAREPWD" -ne "" -and "$GITFILESHAREPWD" -ne "`$`(gitfileshare.pwd)") {
172
- net use s: \\gitfileshare.file.core.windows.net\test-cache "$GITFILESHAREPWD" /user:AZURE\gitfileshare /persistent:no; c
173
- cmd /c mklink /d "$(Build.SourcesDirectory)\test-cache" S:\; c
174
- }
175
-
176
- # Add build agent's MinGit to PATH
177
- $env:PATH = $env:AGENT_HOMEDIRECTORY +"\externals\\git\cmd;" +$env:PATH
178
-
179
- # Helper to initialize (or update) a Git worktree
180
- function init ($path, $url, $set_origin) {
181
- if (Test-Path $path) {
182
- cd $path; c
183
- if (Test-Path .git) {
184
- git init; c
185
- } else {
186
- git status
187
- }
188
- } else {
189
- git init $path; c
190
- cd $path; c
191
- }
192
- git config core.autocrlf false; c
193
- git config core.untrackedCache true; c
194
- if (($set_origin -ne 0) -and !(git config remote.origin.url)) {
195
- git remote add origin $url; c
196
- }
197
- git fetch --depth=1 $url master; c
198
- git reset --hard FETCH_HEAD; c
199
- git clean -df; c
200
- }
201
-
202
- # Initialize Git for Windows' SDK
203
- $sdk_path = "$(Build.SourcesDirectory)\git-sdk-64"
204
- init "$sdk_path" "https://dev.azure.com/git-for-windows/git-sdk-64/_git/git-sdk-64" 0
205
- init usr\src\build-extra https://github.com/git-for-windows/build-extra 1
206
-
207
- cd "$(Build.SourcesDirectory)"; c
208
-
209
- $env:HOME = "$(Build.SourcesDirectory)"
210
- $env:MSYSTEM = "MINGW64"
211
- git-sdk-64\git-cmd --command=usr\\bin\\bash.exe -lc @"
212
- . ci/lib.sh
213
-
214
- make -j10 DEVELOPER=1 NO_PERL=1 || exit 1
215
- NO_PERL=1 NO_SVN_TESTS=1 GIT_TEST_OPTS=\"--quiet --write-junit-xml\" time make -j15 -k DEVELOPER=1 test || {
216
- NO_PERL=1 NO_SVN_TESTS=1 GIT_TEST_OPTS=\"-i -v -x\" make -k -C t failed; exit 1
217
- }
218
-
219
- save_good_tree
220
- "@
221
- c
222
-
223
- if ("$GITFILESHAREPWD" -ne "" -and "$GITFILESHAREPWD" -ne "`$`(gitfileshare.pwd)") {
224
- cmd /c rmdir "$(Build.SourcesDirectory)\test-cache"
225
- }
226
- displayName: 'build & test'
227
- env:
228
- GITFILESHAREPWD: $(gitfileshare.pwd)
229
- - task : PublishTestResults@2
230
- displayName : ' Publish Test Results **/TEST-*.xml'
231
- inputs :
232
- mergeTestResults : true
233
- testRunTitle : ' windows'
234
- platform : Windows
235
- publishRunAttachments : false
236
- condition : succeededOrFailed()
237
-
238
- - phase : linux32
239
- displayName : Linux32
240
- condition : succeeded()
241
- queue :
242
- name : Hosted Ubuntu 1604
243
- steps :
244
- - bash : |
245
- test "$GITFILESHAREPWD" = '$(gitfileshare.pwd)' || ci/mount-fileshare.sh //gitfileshare.file.core.windows.net/test-cache gitfileshare "$GITFILESHAREPWD" "$HOME/test-cache" || exit 1
246
-
247
- sudo apt-get update &&
248
- sudo apt-get -y install \
249
- apt-transport-https \
250
- ca-certificates \
251
- curl \
252
- software-properties-common &&
253
- curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - &&
254
- sudo add-apt-repository \
255
- "deb [arch=amd64] https://download.docker.com/linux/ubuntu \
256
- $(lsb_release -cs) \
257
- stable" &&
258
- sudo apt-get update &&
259
- sudo apt-get -y install docker-ce &&
260
-
261
- 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=-j3 bash -lxc ci/run-linux32-docker.sh || exit 1
262
-
263
- sudo chmod a+r t/out/TEST-*.xml
264
-
265
- test "$GITFILESHAREPWD" = '$(gitfileshare.pwd)' || sudo umount "$HOME/test-cache" || exit 1
266
- displayName: 'ci/run-linux32-docker.sh'
267
- env:
268
- GITFILESHAREPWD: $(gitfileshare.pwd)
269
- - task : PublishTestResults@2
270
- displayName : ' Publish Test Results **/TEST-*.xml'
271
- inputs :
272
- mergeTestResults : true
273
- testRunTitle : ' linux32'
274
- platform : Linux
275
- publishRunAttachments : false
276
- condition : succeededOrFailed()
277
-
278
- - phase : static_analysis
279
- displayName : StaticAnalysis
280
- condition : succeeded()
281
- queue :
282
- name : Hosted Ubuntu 1604
283
- steps :
284
- - bash : |
285
- test "$GITFILESHAREPWD" = '$(gitfileshare.pwd)' || ci/mount-fileshare.sh //gitfileshare.file.core.windows.net/test-cache gitfileshare "$GITFILESHAREPWD" "$HOME/test-cache" || exit 1
286
-
287
- sudo apt-get update &&
288
- sudo apt-get install -y coccinelle &&
289
-
290
- export jobname=StaticAnalysis &&
291
-
292
- ci/run-static-analysis.sh || exit 1
293
-
294
- test "$GITFILESHAREPWD" = '$(gitfileshare.pwd)' || sudo umount "$HOME/test-cache" || exit 1
295
- displayName: 'ci/run-static-analysis.sh'
296
- env:
297
- GITFILESHAREPWD: $(gitfileshare.pwd)
298
-
299
- - phase : documentation
300
- displayName : Documentation
301
- condition : succeeded()
302
- queue :
303
- name : Hosted Ubuntu 1604
304
- steps :
305
- - bash : |
306
- test "$GITFILESHAREPWD" = '$(gitfileshare.pwd)' || ci/mount-fileshare.sh //gitfileshare.file.core.windows.net/test-cache gitfileshare "$GITFILESHAREPWD" "$HOME/test-cache" || exit 1
307
-
308
- sudo apt-get update &&
309
- sudo apt-get install -y asciidoc xmlto asciidoctor &&
310
-
311
- export ALREADY_HAVE_ASCIIDOCTOR=yes. &&
312
- export jobname=Documentation &&
313
-
314
- ci/test-documentation.sh || exit 1
315
-
316
- test "$GITFILESHAREPWD" = '$(gitfileshare.pwd)' || sudo umount "$HOME/test-cache" || exit 1
317
- displayName: 'ci/test-documentation.sh'
318
- env:
319
- GITFILESHAREPWD: $(gitfileshare.pwd)
0 commit comments