10
10
- hotfix/*
11
11
12
12
jobs :
13
- - job : Windows
13
+ # Build
14
+ - job : Build
14
15
pool :
15
16
vmImage : ' windows-2019'
16
17
steps :
17
18
- powershell : ./build.ps1
18
- displayName : ' Cake Build'
19
+ displayName : ' Build'
20
+ - publish : $(Build.SourcesDirectory)/BuildArtifacts/Packages/NuGet
21
+ artifact : NuGet Package
22
+ displayName : ' Publish NuGet package as build artifact'
23
+ # Integration Tests Windows (.NET Framework)
24
+ - job : Test_Windows_DotNetFramework
25
+ displayName : ' Integration Tests Windows (.NET Framework)'
26
+ dependsOn : Build
27
+ pool :
28
+ vmImage : ' windows-2019'
29
+ steps :
30
+ - task : NodeTool@0
31
+ inputs :
32
+ versionSpec : ' 14.x'
33
+ displayName : ' Install NodeJs 14.x'
34
+ - powershell : choco install markdownlint-cli --no-progress
35
+ displayName : ' Install required tools'
36
+ - download : current
37
+ artifact : NuGet Package
38
+ displayName : ' Download build artifact'
39
+ - task : CopyFiles@2
40
+ inputs :
41
+ sourceFolder : $(Pipeline.Workspace)/NuGet Package
42
+ targetFolder : $(Build.SourcesDirectory)/BuildArtifacts/Packages/NuGet
43
+ displayName : ' Copy build artifact for test run'
44
+ - powershell : ./build.ps1 -verbosity diagnostic
45
+ workingDirectory : ./demos/
46
+ displayName : ' Run integration tests'
47
+ - publish : $(Build.SourcesDirectory)/docs/templates
48
+ artifact : Integration Tests Windows (.NET Framework)
49
+ displayName : ' Publish generated reports as build artifact'
50
+ # Integration Tests Windows (.NET Core tool)
51
+ - job : Test_Windows_DotNetCoreTool
52
+ displayName : Integration Tests Windows (.NET Core tool)
53
+ dependsOn : Build
54
+ pool :
55
+ vmImage : ' windows-2019'
56
+ steps :
57
+ - task : NodeTool@0
58
+ inputs :
59
+ versionSpec : ' 14.x'
60
+ displayName : ' Install NodeJs 14.x'
61
+ - powershell : choco install markdownlint-cli --no-progress
62
+ displayName : ' Install required tools'
63
+ - download : current
64
+ artifact : NuGet Package
65
+ displayName : ' Download build artifact'
66
+ - task : CopyFiles@2
67
+ inputs :
68
+ sourceFolder : $(Pipeline.Workspace)/NuGet Package
69
+ targetFolder : $(Build.SourcesDirectory)/BuildArtifacts/Packages/NuGet
70
+ displayName : ' Copy build artifact for test run'
71
+ - powershell : dotnet tool restore
72
+ workingDirectory : ./demos/
73
+ displayName : ' Restore .NET Core tool'
74
+ - powershell : dotnet cake
75
+ workingDirectory : ./demos/
76
+ displayName : ' Run integration tests'
77
+ - publish : $(Build.SourcesDirectory)/docs/templates
78
+ artifact : Integration Tests Windows (.NET Core tool)
79
+ displayName : ' Publish generated reports as build artifact'
80
+ # Integration Tests macOS 10.14 (Mono)
81
+ - job : Test_macOS_Mono
82
+ displayName : ' Integration Tests macOS 10.14 (Mono)'
83
+ dependsOn : Build
84
+ pool :
85
+ vmImage : ' macOS-10.14'
86
+ steps :
87
+ - task : NodeTool@0
88
+ inputs :
89
+ versionSpec : ' 14.x'
90
+ displayName : ' Install NodeJs 14.x'
91
+ - bash : |
92
+ npm install -g markdownlint-cli
93
+ displayName: 'Install required tools'
94
+ # To manually select a Xamarin SDK version on the Hosted macOS agent, enable this script with the SDK version you want to target
95
+ # https://go.microsoft.com/fwlink/?linkid=871629
96
+ - bash : |
97
+ sudo $AGENT_HOMEDIRECTORY/scripts/select-xamarin-sdk.sh 5_18_1
98
+ displayName: 'Select Mono 5.18.1'
99
+ - download : current
100
+ artifact : NuGet Package
101
+ displayName : ' Download build artifact'
102
+ - task : CopyFiles@2
103
+ inputs :
104
+ sourceFolder : $(Pipeline.Workspace)/NuGet Package
105
+ targetFolder : $(Build.SourcesDirectory)/BuildArtifacts/Packages/NuGet
106
+ displayName : ' Copy build artifact for test run'
107
+ - bash : |
108
+ ./build.sh --verbosity diagnostic
109
+ workingDirectory: ./demos/
110
+ displayName: 'Run integration tests'
111
+ - publish : $(Build.SourcesDirectory)/docs/templates
112
+ artifact : Integration Tests macOS 10.14 (Mono)
113
+ displayName : ' Publish generated reports as build artifact'
114
+ # Integration Tests macOS 10.15 (.NET Core tool)
115
+ - job : Test_macOS_DotNetCoreTool
116
+ displayName : Integration Tests macOS 10.15 (.NET Core tool)
117
+ dependsOn : Build
118
+ pool :
119
+ vmImage : ' macOS-10.15'
120
+ steps :
121
+ - task : NodeTool@0
122
+ inputs :
123
+ versionSpec : ' 14.x'
124
+ displayName : ' Install NodeJs 14.x'
125
+ - bash : |
126
+ npm install -g markdownlint-cli
127
+ displayName: 'Install required tools'
128
+ - download : current
129
+ artifact : NuGet Package
130
+ displayName : ' Download build artifact'
131
+ - task : CopyFiles@2
132
+ inputs :
133
+ sourceFolder : $(Pipeline.Workspace)/NuGet Package
134
+ targetFolder : $(Build.SourcesDirectory)/BuildArtifacts/Packages/NuGet
135
+ displayName : ' Copy build artifact for test run'
136
+ - bash : |
137
+ dotnet tool restore
138
+ workingDirectory: ./demos/
139
+ displayName: 'Restore .NET Core tool'
140
+ - bash : |
141
+ dotnet cake
142
+ workingDirectory: ./demos/
143
+ displayName: 'Run integration tests'
144
+ - publish : $(Build.SourcesDirectory)/docs/templates
145
+ artifact : Integration Tests macOS 10.15 (.NET Core tool)
146
+ displayName : ' Publish generated reports as build artifact'
147
+ # Integration Tests Ubuntu 16.04 (Mono)
148
+ - job : Test_ubuntu_Mono
149
+ displayName : ' Integration Tests Ubuntu 16.04 (Mono)'
150
+ dependsOn : Build
151
+ pool :
152
+ vmImage : ' ubuntu-16.04'
153
+ steps :
154
+ - task : NodeTool@0
155
+ inputs :
156
+ versionSpec : ' 14.x'
157
+ displayName : ' Install NodeJs 14.x'
158
+ - bash : |
159
+ npm install -g markdownlint-cli
160
+ displayName: 'Install required tools'
161
+ - download : current
162
+ artifact : NuGet Package
163
+ displayName : ' Download build artifact'
164
+ - task : CopyFiles@2
165
+ inputs :
166
+ sourceFolder : $(Pipeline.Workspace)/NuGet Package
167
+ targetFolder : $(Build.SourcesDirectory)/BuildArtifacts/Packages/NuGet
168
+ displayName : ' Copy build artifact for test run'
169
+ - bash : |
170
+ ./build.sh --verbosity diagnostic
171
+ workingDirectory: ./demos/
172
+ displayName: 'Run integration tests'
173
+ - publish : $(Build.SourcesDirectory)/docs/templates
174
+ artifact : Integration Tests Ubuntu 16.04 (Mono)
175
+ displayName : ' Publish generated reports as build artifact'
176
+ # Integration Tests Ubuntu 16.04 (.NET Core tool)
177
+ - job : Test_ubuntu_DotNetCoreTool
178
+ displayName : Integration Tests Ubuntu 16.04 (.NET Core tool)
179
+ dependsOn : Build
180
+ pool :
181
+ vmImage : ' ubuntu-16.04'
182
+ steps :
183
+ - task : NodeTool@0
184
+ inputs :
185
+ versionSpec : ' 14.x'
186
+ displayName : ' Install NodeJs 14.x'
187
+ - bash : |
188
+ npm install -g markdownlint-cli
189
+ displayName: 'Install required tools'
190
+ - download : current
191
+ artifact : NuGet Package
192
+ displayName : ' Download build artifact'
193
+ - task : CopyFiles@2
194
+ inputs :
195
+ sourceFolder : $(Pipeline.Workspace)/NuGet Package
196
+ targetFolder : $(Build.SourcesDirectory)/BuildArtifacts/Packages/NuGet
197
+ displayName : ' Copy build artifact for test run'
198
+ - bash : |
199
+ dotnet tool restore
200
+ workingDirectory: ./demos/
201
+ displayName: 'Restore .NET Core tool'
202
+ - bash : |
203
+ dotnet cake
204
+ workingDirectory: ./demos/
205
+ displayName: 'Run integration tests'
206
+ - publish : $(Build.SourcesDirectory)/docs/templates
207
+ artifact : Integration Tests Ubuntu 16.04 (.NET Core tool)
208
+ displayName : ' Publish generated reports as build artifact'
0 commit comments