@@ -200,3 +200,84 @@ jobs:
200200 inputs :
201201 ArtifactName : debug
202202 condition : succeededOrFailed()
203+
204+ - job : mac_dotnet_build
205+ displayName : Mac .NET Core
206+ pool : $(HostedMac)
207+ timeoutInMinutes : 20
208+ workspace :
209+ clean : all
210+ steps :
211+ - checkout : self
212+ submodules : recursive
213+
214+ - task : UseDotNet@2
215+ displayName : Use .NET Core $(DotNetCoreVersion)
216+ inputs :
217+ version : $(DotNetCoreVersion)
218+
219+ - script : |
220+ dotnet tool install --global boots
221+ boots --stable Mono
222+ displayName: Install Mono-Stable
223+
224+ - task : DotNetCoreCLI@2
225+ displayName : Prepare Solution
226+ inputs :
227+ command : restore
228+ projects : Java.Interop.sln
229+ arguments : ' -c $(Build.Configuration)'
230+
231+ - task : DotNetCoreCLI@2
232+ displayName : Prepare Solution
233+ inputs :
234+ projects : Java.Interop.sln
235+ arguments : ' -c $(Build.Configuration) -target:Prepare'
236+
237+ - task : DotNetCoreCLI@2
238+ displayName : Build Solution
239+ inputs :
240+ projects : Java.Interop.sln
241+ arguments : ' -c $(Build.Configuration) -v normal'
242+
243+ - task : DotNetCoreCLI@2
244+ displayName : ' Tests: generator'
245+ inputs :
246+ command : test
247+ arguments : bin\Test$(Build.Configuration)\generator-Tests.dll
248+ continueOnError : true
249+
250+ - task : DotNetCoreCLI@2
251+ displayName : ' Tests: JavaCallableWrappers'
252+ inputs :
253+ command : test
254+ arguments : bin\Test$(Build.Configuration)\Java.Interop.Tools.JavaCallableWrappers-Tests.dll
255+ continueOnError : true
256+
257+ - task : DotNetCoreCLI@2
258+ displayName : ' Tests: logcat-parse'
259+ inputs :
260+ command : test
261+ arguments : bin\Test$(Build.Configuration)\logcat-parse-Tests.dll
262+ continueOnError : true
263+
264+ - task : DotNetCoreCLI@2
265+ displayName : ' Tests: ApiXmlAdjuster'
266+ inputs :
267+ command : test
268+ arguments : bin\Test$(Build.Configuration)\Xamarin.Android.Tools.ApiXmlAdjuster-Tests.dll
269+ continueOnError : true
270+
271+ - task : DotNetCoreCLI@2
272+ displayName : ' Tests: Bytecode'
273+ inputs :
274+ command : test
275+ arguments : bin\Test$(Build.Configuration)\Xamarin.Android.Tools.Bytecode-Tests.dll
276+ continueOnError : true
277+
278+ - powershell : |
279+ Write-Host "Current job status is: $env:AGENT_JOBSTATUS"
280+ if ($env:AGENT_JOBSTATUS -eq "SucceededWithIssues") {
281+ Write-Host "##vso[task.complete result=Failed;]DONE"
282+ }
283+ displayName: Fail job if tests failed
0 commit comments