forked from dotnet/roslyn
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
256 lines (229 loc) · 7.67 KB
/
azure-pipelines.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
# Branches that trigger a build on commit
trigger:
- master
- master-vs-deps
- release/*
- features/*
- demos/*
# Branches that trigger builds on PR
pr:
- master
- master-vs-deps
- release/*
- features/*
- demos/*
jobs:
- job: Windows_Desktop_Unit_Tests
pool:
name: NetCorePublic-Pool
queue: BuildPool.Windows.10.Amd64.Open
strategy:
maxParallel: 4
matrix:
debug_32:
_configuration: Debug
_testKind: Test32
debug_64:
_configuration: Debug
_testKind: Test64
release_32:
_configuration: Release
_testKind: Test32
release_64:
_configuration: Release
_testKind: Test64
timeoutInMinutes: 90
steps:
- script: eng/cibuild.cmd -configuration $(_configuration) -prepareMachine -testDesktop -$(_testKind) -procdump -skipAnalyzers
displayName: Build and Test
- task: PublishTestResults@2
displayName: Publish xUnit Test Results
inputs:
testRunner: XUnit
testResultsFiles: '$(Build.SourcesDirectory)\artifacts\TestResults\$(_configuration)\*.xml'
mergeTestResults: true
testRunTitle: 'Windows Desktop $(_configuration) $(_testKind)'
condition: always()
- task: PublishBuildArtifacts@1
displayName: Publish Logs
inputs:
PathtoPublish: '$(Build.SourcesDirectory)\artifacts\log\$(_configuration)'
ArtifactName: 'Windows Desktop $(_configuration) $(_testKind)'
publishLocation: Container
continueOnError: true
condition: not(succeeded())
- job: Windows_Desktop_Spanish_Unit_Tests
pool:
name: NetCorePublic-Pool
queue: BuildPool.Windows.10.Amd64.ES.VS2017.Open
timeoutInMinutes: 90
steps:
- script: eng/cibuild.cmd -configuration Debug -prepareMachine -testDesktop -skipAnalyzers
displayName: Build and Test
- task: PublishTestResults@2
displayName: Publish xUnit Test Results
inputs:
testRunner: XUnit
testResultsFiles: '$(Build.SourcesDirectory)\artifacts\TestResults\Debug\*.xml'
mergeTestResults: true
testRunTitle: 'Windows Desktop Spanish'
condition: always()
- task: PublishBuildArtifacts@1
inputs:
PathtoPublish: '$(Build.SourcesDirectory)\artifacts\log\Debug'
ArtifactName: 'Windows Desktop Spanish'
publishLocation: Container
continueOnError: true
condition: not(succeeded())
- job: Windows_CoreClr_Unit_Tests
pool:
name: NetCorePublic-Pool
queue: BuildPool.Windows.10.Amd64.VS2017.Open
strategy:
maxParallel: 2
matrix:
debug:
_configuration: Debug
release:
_configuration: Release
timeoutInMinutes: 90
steps:
- script: eng/cibuild.cmd -configuration $(_configuration) -prepareMachine -msbuildEngine:dotnet -testCoreClr -skipAnalyzers
displayName: Build and Test
- task: PublishTestResults@2
displayName: Publish xUnit Test Results
inputs:
testRunner: XUnit
testResultsFiles: '$(Build.SourcesDirectory)\artifacts\TestResults\$(_configuration)\*.xml'
mergeTestResults: true
testRunTitle: 'Windows CoreClr $(_configuration)'
condition: always()
- task: PublishBuildArtifacts@1
displayName: Publish Logs
inputs:
PathtoPublish: '$(Build.SourcesDirectory)\artifacts\log\$(_configuration)'
ArtifactName: 'Windows CoreClr $(_configuration)'
publishLocation: Container
continueOnError: true
condition: not(succeeded())
- job: Windows_Determinism_Test
pool:
name: NetCorePublic-Pool
queue: BuildPool.Windows.10.Amd64.VS2017.Open
timeoutInMinutes: 90
steps:
- script: eng/test-determinism.cmd -configuration Debug
displayName: Build - Validate determinism
- task: PublishBuildArtifacts@1
displayName: Publish Logs
inputs:
PathtoPublish: '$(Build.SourcesDirectory)\artifacts\log\Debug'
ArtifactName: 'Build Determinism Files'
publishLocation: Container
continueOnError: true
condition: not(succeeded())
- job: Windows_Correctness_Test
pool:
name: NetCorePublic-Pool
queue: BuildPool.Windows.10.Amd64.VS2017.Open
timeoutInMinutes: 90
steps:
- script: eng/test-build-correctness.cmd -configuration Release
displayName: Build - Validate correctness
- task: PublishBuildArtifacts@1
displayName: Publish Logs
inputs:
PathtoPublish: '$(Build.SourcesDirectory)\artifacts\log\Release'
ArtifactName: 'Build Correctness Files'
publishLocation: Container
continueOnError: true
condition: not(succeeded())
- task: PublishBuildArtifacts@1
displayName: Publish Artifact Packages
inputs:
PathtoPublish: '$(Build.SourcesDirectory)\artifacts\packages\Release\PreRelease'
ArtifactName: 'Packages - PreRelease'
publishLocation: Container
condition: succeeded()
- task: PublishBuildArtifacts@1
displayName: Publish VSIX Packages
inputs:
PathtoPublish: '$(Build.SourcesDirectory)\artifacts\VSSetup\Release\Installer'
ArtifactName: 'VSIX - PreRelease'
publishLocation: Container
condition: succeeded()
- job: Linux_Test
pool:
name: NetCorePublic-Pool
queue: BuildPool.Ubuntu.1604.amd64.Open
strategy:
maxParallel: 2
matrix:
coreclr:
_args: --testCoreClr --docker
_name: CoreClr
_configuration: Debug
# Disabling Mono while https://github.com/mono/mono/issues/16373 is worked out
# mono:
# _args: --testMono --docker
# _name: Mono
# _configuration: Debug
timeoutInMinutes: 90
steps:
- script: ./eng/cibuild.sh --configuration $(_configuration) --prepareMachine --skipAnalyzers $(_args)
displayName: Build and Test
- task: PublishTestResults@2
displayName: Publish xUnit Test Results
inputs:
testRunner: XUnit
testResultsFiles: '$(Build.SourcesDirectory)/artifacts/TestResults/$(_configuration)/*.xml'
mergeTestResults: true
testRunTitle: 'Linux $(_name)'
condition: always()
- task: PublishBuildArtifacts@1
displayName: Publish Logs
inputs:
PathtoPublish: '$(Build.SourcesDirectory)/artifacts/log/$(_configuration)'
ArtifactName: 'Linux $(_name)'
publishLocation: Container
continueOnError: true
condition: not(succeeded())
- job: SourceBuild_Test
pool:
name: NetCorePublic-Pool
queue: BuildPool.Ubuntu.1604.amd64.Open
timeoutInMinutes: 90
steps:
- script: ./eng/cibuild.sh --configuration Debug --prepareMachine --docker --sourceBuild --skipAnalyzers
displayName: Build
- task: PublishBuildArtifacts@1
displayName: Publish Logs
inputs:
PathtoPublish: '$(Build.SourcesDirectory)/artifacts/log/Debug'
ArtifactName: 'SourceBuild_Test'
publishLocation: Container
continueOnError: true
condition: not(succeeded())
- job: macOS_Test
pool:
vmImage: 'macOS-10.14'
timeoutInMinutes: 90
steps:
- script: ./eng/cibuild.sh --configuration Debug --prepareMachine --testCoreClr --skipAnalyzers
displayName: Build and Test
- task: PublishTestResults@2
displayName: Publish xUnit Test Results
inputs:
testRunner: XUnit
testResultsFiles: '$(Build.SourcesDirectory)/artifacts/TestResults/Debug/*.xml'
mergeTestResults: true
testRunTitle: 'macOS CoreClr'
condition: always()
- task: PublishBuildArtifacts@1
displayName: Publish Logs
inputs:
PathtoPublish: '$(Build.SourcesDirectory)/artifacts/log/Debug'
ArtifactName: 'macOS CoreClr'
publishLocation: Container
continueOnError: true
condition: not(succeeded())