forked from dotnet/roslyn
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.vsts-dnceng.yml
162 lines (144 loc) · 4.66 KB
/
.vsts-dnceng.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
phases:
- phase: Windows_Desktop_Unit_Tests
queue:
name: dotnet-external-temp
timeoutInMinutes: 90
parallel: 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
steps:
- script: build/scripts/cibuild.cmd -configuration $(_configuration) -testDesktop -$(_testKind)
displayName: Build and Test
- task: PublishTestResults@1
inputs:
testRunner: XUnit
testResultsFiles: '**/xUnitResults/*.xml'
mergeTestResults: true
testRunTitle: 'Windows Desktop $(_configuration) $(_testKind)'
condition: succeededOrFailed()
- task: PublishBuildArtifacts@1
inputs:
PathtoPublish: '$(Build.SourcesDirectory)\Binaries\$(_configuration)\Logs'
ArtifactName: 'Windows Desktop $(_configuration) $(_testKind)'
publishLocation: Container
continueOnError: true
condition: failed()
- phase: Windows_Desktop_Spanish_Unit_Tests
queue:
name: dnceng-windows-spanish-external-temp
timeoutInMinutes: 90
steps:
- script: build/scripts/cibuild.cmd -configuration Debug -testDesktop
displayName: Build and Test
- task: PublishTestResults@1
inputs:
testRunner: XUnit
testResultsFiles: '**/xUnitResults/*.xml'
mergeTestResults: true
testRunTitle: 'Windows Desktop Spanish'
condition: succeededOrFailed()
- task: PublishBuildArtifacts@1
inputs:
PathtoPublish: '$(Build.SourcesDirectory)\Binaries\$(_configuration)\Logs'
ArtifactName: 'Windows Desktop Spanish'
publishLocation: Container
continueOnError: true
condition: failed()
- phase: Windows_CoreClr_Unit_Tests
queue:
name: dotnet-external-temp
timeoutInMinutes: 90
parallel: 2
matrix:
debug:
_configuration: Debug
release:
_configuration: Release
steps:
- script: build/scripts/cibuild.cmd -configuration $(_configuration) -testCoreClr -buildCoreClr
displayName: Build and Test
- task: PublishTestResults@1
inputs:
testRunner: XUnit
testResultsFiles: '**/xUnitResults/*.xml'
mergeTestResults: true
testRunTitle: 'Windows CoreClr $(_configuration)'
condition: succeededOrFailed()
- task: PublishBuildArtifacts@1
inputs:
PathtoPublish: '$(Build.SourcesDirectory)\Binaries\$(_configuration)\Logs'
ArtifactName: 'Windows CoreClr $(_configuration)'
publishLocation: Container
continueOnError: true
condition: failed()
- phase: Windows_Determinism_Test
queue:
name: dotnet-external-temp
timeoutInMinutes: 90
steps:
- script: build/scripts/cibuild.cmd -testDeterminism
displayName: Build - Validate determinism
- task: PublishBuildArtifacts@1
inputs:
PathtoPublish: '$(Build.SourcesDirectory)\Binaries\Debug\Logs'
ArtifactName: 'Build Determinism Files'
publishLocation: Container
continueOnError: true
condition: failed()
- phase: Windows_Correctness_Test
queue:
name: dotnet-external-temp
timeoutInMinutes: 90
steps:
- script: build/scripts/test-build-correctness.cmd -configuration Release -cibuild
displayName: Build - Validate correctness
- task: PublishBuildArtifacts@1
inputs:
PathtoPublish: '$(Build.SourcesDirectory)\Binaries\Release\Logs'
ArtifactName: 'Build Correctness Files'
publishLocation: Container
continueOnError: true
condition: failed()
- phase: Linux_Test
queue:
name: DotNetCore-Linux
timeoutInMinutes: 90
parallel: 2
matrix:
coreclr:
_args: --configuration Debug
_name: CoreClr
mono:
_args: --configuration Debug --docker --mono
_name: Mono
steps:
- script: ./build/scripts/cibuild.sh $(_args)
displayName: Build and Test
- script: ./build/scripts/dockerstop.sh
displayName: Stop Docker
condition: eq(variables['_name'], 'Mono')
- task: PublishTestResults@1
inputs:
testRunner: XUnit
testResultsFiles: '**/xUnitResults/*.xml'
mergeTestResults: true
testRunTitle: 'Linux $(_name)'
condition: succeededOrFailed()
- task: PublishBuildArtifacts@1
inputs:
PathtoPublish: '$(Build.SourcesDirectory)/Binaries/Debug/Logs'
ArtifactName: 'Linux $(_name)'
publishLocation: Container
continueOnError: true
condition: failed()