@@ -57,6 +57,8 @@ variables:
5757 value : ' & TestCategory != DotNetIgnore & TestCategory != HybridAOT & TestCategory != MkBundle & TestCategory != MonoSymbolicate & TestCategory != PackagesConfig & TestCategory != StaticProject & TestCategory != SystemApplication'
5858- name : ExcludedNUnitCategories
5959 value : ' & cat != DotNetIgnore & cat != HybridAOT & cat != MkBundle & cat != MonoSymbolicate & cat != PackagesConfig & cat != StaticProject & cat != SystemApplication'
60+ - name : DefaultTestSdkPlatforms # Comma-separated SDK Platform(s) to install on test agents (no spaces)
61+ value : 33
6062- ${{ if eq(variables['Build.DefinitionName'], 'Xamarin.Android-Private') }} :
6163 - group : AzureDevOps-Artifact-Feeds-Pats
6264 - group : DotNet-MSRC-Storage
@@ -312,11 +314,14 @@ stages:
312314 parameters :
313315 provisionClassic : false
314316 provisionatorChannel : ${{ parameters.provisionatorChannel }}
317+ installLegacyDotNet : false
318+ restoreNUnitConsole : false
319+ updateMono : false
315320
316321 - template : yaml-templates/run-xaprepare.yaml
317322 parameters :
318323 displayName : install emulator
319- arguments : --s=EmulatorTestDependencies
324+ arguments : --s=EmulatorTestDependencies --android-sdk-platforms="$(DefaultTestSdkPlatforms)"
320325
321326 - task : DownloadPipelineArtifact@2
322327 inputs :
@@ -334,17 +339,19 @@ stages:
334339 parameters :
335340 project : Xamarin.Android.sln
336341 arguments : >-
337- -t:PrepareJavaInterop -c Debug -m:1 -v:n
342+ -t:PrepareJavaInterop -c Debug --no-restore
338343 -p:DotNetPreviewTool=$(System.DefaultWorkingDirectory)/bin/$(XA.Build.Configuration)/dotnet/dotnet
339344 displayName : prepare java.interop Debug
340345 continueOnError : false
341346
342347 - template : yaml-templates/run-dotnet-preview.yaml
343348 parameters :
344349 project : Xamarin.Android.sln
345- arguments : -t:PrepareJavaInterop -c $(XA.Build.Configuration) -m:1 -v:n
350+ arguments : -t:PrepareJavaInterop -c $(XA.Build.Configuration) --no-restore
346351 displayName : prepare java.interop $(XA.Build.Configuration)
347352 continueOnError : false
353+
354+ - template : yaml-templates/start-stop-emulator.yaml
348355
349356 - template : yaml-templates/apk-instrumentation.yaml
350357 parameters :
@@ -411,15 +418,9 @@ stages:
411418 testAssembly : $(System.DefaultWorkingDirectory)/bin/Test$(XA.Build.Configuration)/$(DotNetStableTargetFramework)/Xamarin.Android.Tools.Aidl-Tests.dll
412419 testResultsFile : TestResult-Aidl-Tests-macOS-$(XA.Build.Configuration).xml
413420
414- - task : MSBuild@1
415- displayName : shut down emulator
416- inputs :
417- solution : tests/Mono.Android-Tests/Mono.Android-Tests.csproj
418- configuration : $(XA.Build.Configuration)
419- msbuildArguments : >-
420- /t:AcquireAndroidTarget,ReleaseAndroidTarget
421- /bl:$(System.DefaultWorkingDirectory)/bin/Test$(XA.Build.Configuration)/shutdown-emulator.binlog
422- condition : always()
421+ - template : yaml-templates/start-stop-emulator.yaml
422+ parameters :
423+ command : stop
423424
424425 - template : yaml-templates/upload-results.yaml
425426 parameters :
0 commit comments