7 displayName: linux-clang
9 pool: Hosted Ubuntu 1604
12 test "$GITFILESHAREPWD" = '$(gitfileshare.pwd)' || ci/mount-fileshare.sh //gitfileshare.file.core.windows.net/test-cache gitfileshare "$GITFILESHAREPWD" "$HOME/test-cache" || exit 1
14 sudo apt-get update &&
15 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 export CC=clang || exit 1
19 ci/install-dependencies.sh || exit 1
20 ci/run-build-and-tests.sh || {
21 ci/print-test-failures.sh
25 test "$GITFILESHAREPWD" = '$(gitfileshare.pwd)' || sudo umount "$HOME/test-cache" || exit 1
26 displayName: 'ci/run-build-and-tests.sh'
28 GITFILESHAREPWD: $(gitfileshare.pwd)
29 - task: PublishTestResults@2
30 displayName: 'Publish Test Results **/TEST-*.xml'
32 mergeTestResults: true
33 testRunTitle: 'linux-clang'
35 publishRunAttachments: false
36 condition: succeededOrFailed()
37 - task: PublishBuildArtifacts@1
38 displayName: 'Publish trash directories of failed tests'
41 PathtoPublish: t/failed-test-artifacts
42 ArtifactName: failed-test-artifacts
45 displayName: linux-gcc
46 condition: succeeded()
47 pool: Hosted Ubuntu 1604
50 test "$GITFILESHAREPWD" = '$(gitfileshare.pwd)' || ci/mount-fileshare.sh //gitfileshare.file.core.windows.net/test-cache gitfileshare "$GITFILESHAREPWD" "$HOME/test-cache" || exit 1
52 sudo add-apt-repository ppa:ubuntu-toolchain-r/test &&
53 sudo apt-get update &&
54 sudo apt-get -y install git gcc make libssl-dev libcurl4-openssl-dev libexpat-dev tcl tk gettext git-email zlib1g-dev apache2 language-pack-is git-svn gcc-8 || exit 1
56 ci/install-dependencies.sh || exit 1
57 ci/run-build-and-tests.sh || {
58 ci/print-test-failures.sh
62 test "$GITFILESHAREPWD" = '$(gitfileshare.pwd)' || sudo umount "$HOME/test-cache" || exit 1
63 displayName: 'ci/run-build-and-tests.sh'
65 GITFILESHAREPWD: $(gitfileshare.pwd)
66 - task: PublishTestResults@2
67 displayName: 'Publish Test Results **/TEST-*.xml'
69 mergeTestResults: true
70 testRunTitle: 'linux-gcc'
72 publishRunAttachments: false
73 condition: succeededOrFailed()
74 - task: PublishBuildArtifacts@1
75 displayName: 'Publish trash directories of failed tests'
78 PathtoPublish: t/failed-test-artifacts
79 ArtifactName: failed-test-artifacts
82 displayName: osx-clang
83 condition: succeeded()
87 test "$GITFILESHAREPWD" = '$(gitfileshare.pwd)' || ci/mount-fileshare.sh //gitfileshare.file.core.windows.net/test-cache gitfileshare "$GITFILESHAREPWD" "$HOME/test-cache" || exit 1
91 ci/install-dependencies.sh || exit 1
92 ci/run-build-and-tests.sh || {
93 ci/print-test-failures.sh
97 test "$GITFILESHAREPWD" = '$(gitfileshare.pwd)' || umount "$HOME/test-cache" || exit 1
98 displayName: 'ci/run-build-and-tests.sh'
100 GITFILESHAREPWD: $(gitfileshare.pwd)
101 - task: PublishTestResults@2
102 displayName: 'Publish Test Results **/TEST-*.xml'
104 mergeTestResults: true
105 testRunTitle: 'osx-clang'
107 publishRunAttachments: false
108 condition: succeededOrFailed()
109 - task: PublishBuildArtifacts@1
110 displayName: 'Publish trash directories of failed tests'
113 PathtoPublish: t/failed-test-artifacts
114 ArtifactName: failed-test-artifacts
118 condition: succeeded()
122 test "$GITFILESHAREPWD" = '$(gitfileshare.pwd)' || ci/mount-fileshare.sh //gitfileshare.file.core.windows.net/test-cache gitfileshare "$GITFILESHAREPWD" "$HOME/test-cache" || exit 1
124 ci/install-dependencies.sh || exit 1
125 ci/run-build-and-tests.sh || {
126 ci/print-test-failures.sh
130 test "$GITFILESHAREPWD" = '$(gitfileshare.pwd)' || umount "$HOME/test-cache" || exit 1
131 displayName: 'ci/run-build-and-tests.sh'
133 GITFILESHAREPWD: $(gitfileshare.pwd)
134 - task: PublishTestResults@2
135 displayName: 'Publish Test Results **/TEST-*.xml'
137 mergeTestResults: true
138 testRunTitle: 'osx-gcc'
140 publishRunAttachments: false
141 condition: succeededOrFailed()
142 - task: PublishBuildArtifacts@1
143 displayName: 'Publish trash directories of failed tests'
146 PathtoPublish: t/failed-test-artifacts
147 ArtifactName: failed-test-artifacts
149 - job: gettext_poison
150 displayName: GETTEXT_POISON
151 condition: succeeded()
152 pool: Hosted Ubuntu 1604
155 test "$GITFILESHAREPWD" = '$(gitfileshare.pwd)' || ci/mount-fileshare.sh //gitfileshare.file.core.windows.net/test-cache gitfileshare "$GITFILESHAREPWD" "$HOME/test-cache" || exit 1
157 sudo apt-get update &&
158 sudo apt-get -y install git gcc make libssl-dev libcurl4-openssl-dev libexpat-dev tcl tk gettext git-email zlib1g-dev &&
160 export jobname=GETTEXT_POISON || exit 1
162 ci/run-build-and-tests.sh || {
163 ci/print-test-failures.sh
167 test "$GITFILESHAREPWD" = '$(gitfileshare.pwd)' || sudo umount "$HOME/test-cache" || exit 1
168 displayName: 'ci/run-build-and-tests.sh'
170 GITFILESHAREPWD: $(gitfileshare.pwd)
171 - task: PublishTestResults@2
172 displayName: 'Publish Test Results **/TEST-*.xml'
174 mergeTestResults: true
175 testRunTitle: 'gettext-poison'
177 publishRunAttachments: false
178 condition: succeededOrFailed()
179 - task: PublishBuildArtifacts@1
180 displayName: 'Publish trash directories of failed tests'
183 PathtoPublish: t/failed-test-artifacts
184 ArtifactName: failed-test-artifacts
188 condition: succeeded()
189 pool: Hosted Ubuntu 1604
192 test "$GITFILESHAREPWD" = '$(gitfileshare.pwd)' || ci/mount-fileshare.sh //gitfileshare.file.core.windows.net/test-cache gitfileshare "$GITFILESHAREPWD" "$HOME/test-cache" || exit 1
195 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" bash -lxc ci/run-linux32-docker.sh || res=1
197 sudo chmod a+r t/out/TEST-*.xml
198 test ! -d t/failed-test-artifacts || sudo chmod a+r t/failed-test-artifacts
200 test "$GITFILESHAREPWD" = '$(gitfileshare.pwd)' || sudo umount "$HOME/test-cache" || res=1
202 displayName: 'ci/run-linux32-docker.sh'
204 GITFILESHAREPWD: $(gitfileshare.pwd)
205 - task: PublishTestResults@2
206 displayName: 'Publish Test Results **/TEST-*.xml'
208 mergeTestResults: true
209 testRunTitle: 'linux32'
211 publishRunAttachments: false
212 condition: succeededOrFailed()
213 - task: PublishBuildArtifacts@1
214 displayName: 'Publish trash directories of failed tests'
217 PathtoPublish: t/failed-test-artifacts
218 ArtifactName: failed-test-artifacts
220 - job: static_analysis
221 displayName: StaticAnalysis
222 condition: succeeded()
223 pool: Hosted Ubuntu 1604
226 test "$GITFILESHAREPWD" = '$(gitfileshare.pwd)' || ci/mount-fileshare.sh //gitfileshare.file.core.windows.net/test-cache gitfileshare "$GITFILESHAREPWD" "$HOME/test-cache" || exit 1
228 sudo apt-get update &&
229 sudo apt-get install -y coccinelle &&
231 export jobname=StaticAnalysis &&
233 ci/run-static-analysis.sh || exit 1
235 test "$GITFILESHAREPWD" = '$(gitfileshare.pwd)' || sudo umount "$HOME/test-cache" || exit 1
236 displayName: 'ci/run-static-analysis.sh'
238 GITFILESHAREPWD: $(gitfileshare.pwd)
241 displayName: Documentation
242 condition: succeeded()
243 pool: Hosted Ubuntu 1604
246 test "$GITFILESHAREPWD" = '$(gitfileshare.pwd)' || ci/mount-fileshare.sh //gitfileshare.file.core.windows.net/test-cache gitfileshare "$GITFILESHAREPWD" "$HOME/test-cache" || exit 1
248 sudo apt-get update &&
249 sudo apt-get install -y asciidoc xmlto asciidoctor &&
251 export ALREADY_HAVE_ASCIIDOCTOR=yes. &&
252 export jobname=Documentation &&
254 ci/test-documentation.sh || exit 1
256 test "$GITFILESHAREPWD" = '$(gitfileshare.pwd)' || sudo umount "$HOME/test-cache" || exit 1
257 displayName: 'ci/test-documentation.sh'
259 GITFILESHAREPWD: $(gitfileshare.pwd)