forked from dotnet/msbuild
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.vsts-dotnet-ci.yml
196 lines (190 loc) · 6.46 KB
/
.vsts-dotnet-ci.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
trigger:
- master
- exp/*
- vs*
phases:
- phase: FullOnWindows
displayName: "Build and test on Windows using full MSBuild"
queue: 'Hosted VS2017'
steps:
- task: BatchScript@1
displayName: VsDevCmd
inputs:
filename: 'C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\Tools\VsDevCmd.bat'
modifyEnvironment: true
- task: BatchScript@1
displayName: cibuild.cmd
inputs:
filename: 'build/cibuild.cmd'
- task: PublishTestResults@2
displayName: Publish .NET Framework Test Results
inputs:
testRunTitle: 'Windows-on-full Full Framework'
testRunner: XUnit
testResultsFiles: 'artifacts/**/*UnitTests_net472*.xml'
publishRunAttachments: true
mergeTestResults: true
condition: always()
- task: PublishTestResults@2
displayName: Publish .NET Core 2.1 Test Results
inputs:
testRunTitle: 'Windows-on-full .NET Core 2.1'
testRunner: XUnit
testResultsFiles: 'artifacts/**/*UnitTests_netcoreapp2.1*.xml'
publishRunAttachments: true
mergeTestResults: true
condition: always()
- task: PublishBuildArtifacts@1
displayName: 'Publish Artifact: logs'
inputs:
PathtoPublish: 'artifacts/Debug/log'
ArtifactName: 'FullOnWindows build logs'
condition: succeededOrFailed()
- task: PublishBuildArtifacts@1
displayName: 'Publish Artifact: logs/TestResults'
inputs:
PathtoPublish: 'artifacts/2/Debug/log/TestResults'
ArtifactName: 'FullOnWindows test logs'
condition: succeededOrFailed()
- phase: FullReleaseOnWindows
displayName: "Build and test Release on Windows using full MSBuild"
queue: 'Hosted VS2017'
steps:
- task: BatchScript@1
displayName: VsDevCmd
inputs:
filename: 'C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\Tools\VsDevCmd.bat'
modifyEnvironment: true
- task: BatchScript@1
displayName: cibuild.cmd
inputs:
filename: 'build/cibuild.cmd'
arguments: '-configuration Release'
- task: PublishTestResults@2
displayName: Publish .NET Framework Test Results
inputs:
testRunTitle: 'Windows-on-full Release Full Framework'
testRunner: XUnit
testResultsFiles: 'artifacts/**/*UnitTests_net472*.xml'
publishRunAttachments: true
mergeTestResults: true
condition: always()
- task: PublishTestResults@2
displayName: Publish .NET Core 2.1 Test Results
inputs:
testRunTitle: 'Windows-on-full Release .NET Core 2.1'
testRunner: XUnit
testResultsFiles: 'artifacts/**/*UnitTests_netcoreapp2.1*.xml'
publishRunAttachments: true
mergeTestResults: true
condition: always()
- task: PublishBuildArtifacts@1
displayName: 'Publish Artifact: logs'
inputs:
PathtoPublish: 'artifacts/Release/log'
ArtifactName: 'FullOnWindows Release build logs'
condition: succeededOrFailed()
- task: PublishBuildArtifacts@1
displayName: 'Publish Artifact: logs/TestResults'
inputs:
PathtoPublish: 'artifacts/2/Release/log/TestResults'
ArtifactName: 'FullOnWindows Release test logs'
condition: succeededOrFailed()
- phase: CoreOnWindows
displayName: "Build and test on Windows using .NET Core MSBuild"
queue: 'Hosted VS2017'
steps:
- task: BatchScript@1
displayName: VsDevCmd
inputs:
filename: 'C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\Tools\VsDevCmd.bat'
modifyEnvironment: true
- task: BatchScript@1
displayName: cibuild.cmd
inputs:
filename: 'build/cibuild.cmd'
arguments: '-hostType Core'
- task: PublishTestResults@2
displayName: Publish .NET Framework Test Results
inputs:
testRunTitle: 'Windows-on-core Full Framework'
testRunner: XUnit
testResultsFiles: 'artifacts/**/*UnitTests_net472*.xml'
publishRunAttachments: true
mergeTestResults: true
condition: always()
- task: PublishTestResults@2
displayName: Publish .NET Core 2.1 Test Results
inputs:
testRunTitle: 'Windows-on-core .NET Core 2.1'
testRunner: XUnit
testResultsFiles: 'artifacts/**/*UnitTests_netcoreapp2.1*.xml'
publishRunAttachments: true
mergeTestResults: true
condition: always()
- task: PublishBuildArtifacts@1
displayName: 'Publish Artifact: logs'
inputs:
PathtoPublish: 'artifacts/Debug/log'
ArtifactName: 'CoreOnWindows build logs'
condition: succeededOrFailed()
- task: PublishBuildArtifacts@1
displayName: 'Publish Artifact: logs/TestResults'
inputs:
PathtoPublish: 'artifacts/2/Debug/log/TestResults'
ArtifactName: 'CoreOnWindows test logs'
condition: succeededOrFailed()
- phase: CoreOnLinux
displayName: "Build and test on Linux using .NET Core MSBuild"
queue: 'Hosted Ubuntu 1604'
steps:
- bash: . 'build/cibuild.sh'
displayName: CI Build
- task: PublishTestResults@2
displayName: Publish .NET Core 2.1 Test Results
inputs:
testRunTitle: 'Linux .NET Core 2.1'
testRunner: XUnit
testResultsFiles: 'artifacts/**/*UnitTests_netcoreapp2.1*.xml'
publishRunAttachments: true
mergeTestResults: true
condition: always()
- task: PublishBuildArtifacts@1
displayName: 'Publish Artifact: logs'
inputs:
PathtoPublish: 'artifacts/Debug/log'
ArtifactName: 'CoreOnLinux build logs'
condition: succeededOrFailed()
- task: PublishBuildArtifacts@1
displayName: 'Publish Artifact: logs/TestResults'
inputs:
PathtoPublish: 'artifacts/2/Debug/log/TestResults'
ArtifactName: 'CoreOnLinux test logs'
condition: succeededOrFailed()
- phase: CoreOnMac
displayName: "Build and test on macOS using .NET Core MSBuild"
queue: 'Hosted macOS'
steps:
- bash: . 'build/cibuild.sh'
displayName: CI Build
- task: PublishTestResults@2
displayName: Publish .NET Core 2.1 Test Results
inputs:
testRunTitle: 'macOS .NET Core 2.1'
testRunner: XUnit
testResultsFiles: 'artifacts/**/*UnitTests_netcoreapp2.1*.xml'
publishRunAttachments: true
mergeTestResults: true
condition: always()
- task: PublishBuildArtifacts@1
displayName: 'Publish Artifact: logs'
inputs:
PathtoPublish: 'artifacts/Debug/log'
ArtifactName: 'CoreOnMac build logs'
condition: succeededOrFailed()
- task: PublishBuildArtifacts@1
displayName: 'Publish Artifact: logs/TestResults'
inputs:
PathtoPublish: 'artifacts/2/Debug/log/TestResults'
ArtifactName: 'CoreOnMac test logs'
condition: succeededOrFailed()