20
20
- publish : $(Build.SourcesDirectory)/BuildArtifacts/Packages/NuGet
21
21
artifact : NuGet Package
22
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 : ./tests/
46
- displayName : ' Run integration tests'
47
- - publish : $(Build.SourcesDirectory)/tests/output
48
- artifact : Integration Tests Windows (.NET Framework)
49
- displayName : ' Publish generated reports as build artifact'
50
23
# Integration Tests Windows (.NET Core tool)
51
24
- job : Test_Windows_DotNetCoreTool
52
25
displayName : Integration Tests Windows (.NET Core tool)
68
41
sourceFolder : $(Pipeline.Workspace)/NuGet Package
69
42
targetFolder : $(Build.SourcesDirectory)/BuildArtifacts/Packages/NuGet
70
43
displayName : ' Copy build artifact for test run'
71
- - powershell : dotnet tool restore
72
- workingDirectory : ./tests/
73
- displayName : ' Restore .NET Core tool'
74
- - powershell : dotnet cake
44
+ - powershell : ./build.ps1 --verbosity=diagnostic
75
45
workingDirectory : ./tests/
76
46
displayName : ' Run integration tests'
77
47
- publish : $(Build.SourcesDirectory)/tests/output
87
57
inputs :
88
58
pathToPublish : ' $(Build.ArtifactStagingDirectory)'
89
59
artifactName : CodeAnalysisLogs
90
- # Integration Tests macOS 10.14 (Mono)
91
- - job : Test_macOS_Mono
92
- displayName : ' Integration Tests macOS 10.14 (Mono)'
93
- dependsOn : Build
94
- pool :
95
- vmImage : ' macOS-10.14'
96
- steps :
97
- - task : NodeTool@0
98
- inputs :
99
- versionSpec : ' 14.x'
100
- displayName : ' Install NodeJs 14.x'
101
- - bash : |
102
- npm install -g markdownlint-cli
103
- displayName: 'Install required tools'
104
- # To manually select a Xamarin SDK version on the Hosted macOS agent, enable this script with the SDK version you want to target
105
- # https://go.microsoft.com/fwlink/?linkid=871629
106
- - bash : |
107
- sudo $AGENT_HOMEDIRECTORY/scripts/select-xamarin-sdk.sh 5_18_1
108
- displayName: 'Select Mono 5.18.1'
109
- - download : current
110
- artifact : NuGet Package
111
- displayName : ' Download build artifact'
112
- - task : CopyFiles@2
113
- inputs :
114
- sourceFolder : $(Pipeline.Workspace)/NuGet Package
115
- targetFolder : $(Build.SourcesDirectory)/BuildArtifacts/Packages/NuGet
116
- displayName : ' Copy build artifact for test run'
117
- - bash : |
118
- ./build.sh --verbosity diagnostic
119
- workingDirectory: ./tests/
120
- displayName: 'Run integration tests'
121
- - publish : $(Build.SourcesDirectory)/tests/output
122
- artifact : Integration Tests macOS 10.14 (Mono)
123
- displayName : ' Publish generated reports as build artifact'
124
60
# Integration Tests macOS 10.15 (.NET Core tool)
125
61
- job : Test_macOS_DotNetCoreTool
126
62
displayName : Integration Tests macOS 10.15 (.NET Core tool)
@@ -143,46 +79,12 @@ jobs:
143
79
sourceFolder : $(Pipeline.Workspace)/NuGet Package
144
80
targetFolder : $(Build.SourcesDirectory)/BuildArtifacts/Packages/NuGet
145
81
displayName : ' Copy build artifact for test run'
146
- - bash : |
147
- dotnet tool restore
148
- workingDirectory: ./tests/
149
- displayName: 'Restore .NET Core tool'
150
- - bash : |
151
- dotnet cake
82
+ - powershell : ./build.ps1 --verbosity=diagnostic
152
83
workingDirectory : ./tests/
153
84
displayName : ' Run integration tests'
154
85
- publish : $(Build.SourcesDirectory)/tests/output
155
86
artifact : Integration Tests macOS 10.15 (.NET Core tool)
156
87
displayName : ' Publish generated reports as build artifact'
157
- # Integration Tests Ubuntu 16.04 (Mono)
158
- - job : Test_ubuntu_Mono
159
- displayName : ' Integration Tests Ubuntu 16.04 (Mono)'
160
- dependsOn : Build
161
- pool :
162
- vmImage : ' ubuntu-16.04'
163
- steps :
164
- - task : NodeTool@0
165
- inputs :
166
- versionSpec : ' 14.x'
167
- displayName : ' Install NodeJs 14.x'
168
- - bash : |
169
- npm install -g markdownlint-cli
170
- displayName: 'Install required tools'
171
- - download : current
172
- artifact : NuGet Package
173
- displayName : ' Download build artifact'
174
- - task : CopyFiles@2
175
- inputs :
176
- sourceFolder : $(Pipeline.Workspace)/NuGet Package
177
- targetFolder : $(Build.SourcesDirectory)/BuildArtifacts/Packages/NuGet
178
- displayName : ' Copy build artifact for test run'
179
- - bash : |
180
- ./build.sh --verbosity diagnostic
181
- workingDirectory: ./tests/
182
- displayName: 'Run integration tests'
183
- - publish : $(Build.SourcesDirectory)/tests/output
184
- artifact : Integration Tests Ubuntu 16.04 (Mono)
185
- displayName : ' Publish generated reports as build artifact'
186
88
# Integration Tests Ubuntu 16.04 (.NET Core tool)
187
89
- job : Test_ubuntu_DotNetCoreTool
188
90
displayName : Integration Tests Ubuntu 16.04 (.NET Core tool)
@@ -205,12 +107,7 @@ jobs:
205
107
sourceFolder : $(Pipeline.Workspace)/NuGet Package
206
108
targetFolder : $(Build.SourcesDirectory)/BuildArtifacts/Packages/NuGet
207
109
displayName : ' Copy build artifact for test run'
208
- - bash : |
209
- dotnet tool restore
210
- workingDirectory: ./tests/
211
- displayName: 'Restore .NET Core tool'
212
- - bash : |
213
- dotnet cake
110
+ - powershell : ./build.ps1 --verbosity=diagnostic
214
111
workingDirectory : ./tests/
215
112
displayName : ' Run integration tests'
216
113
- publish : $(Build.SourcesDirectory)/tests/output
0 commit comments