Skip to content

Commit 1645103

Browse files
authored
[automation] Add 'xaSourcePath' to yaml so they can be used from monodroid. (#7978)
Lets add the `xaSourcePath` parameter to some yaml files so that they can be called from `monodroid`.
1 parent d8ac255 commit 1645103

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

build-tools/automation/yaml-templates/start-stop-emulator.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,15 @@ parameters:
66
avdAbi: # Device ABI, like 'x86', required if 'specificImage' is 'true'
77
avdType: # Device AVD, like 'android-wear', required if 'specificImage' is 'true'
88
launchTimeoutMin: 15 # Minutes to wait for the emulator to start
9+
xaSourcePath: $(System.DefaultWorkingDirectory) # working directory
910

1011
steps:
1112
- ${{ if eq(parameters.command, 'start') }}:
1213
- task: DotNetCoreCLI@2
1314
displayName: Start emulator
1415
continueOnError: false
1516
inputs:
16-
projects: src/Xamarin.Android.Build.Tasks/Tests/Xamarin.Android.Build.Tests/Emulator.csproj
17+
projects: ${{ parameters.xaSourcePath }}/src/Xamarin.Android.Build.Tasks/Tests/Xamarin.Android.Build.Tests/Emulator.csproj
1718
${{ if eq(parameters.specificImage, true) }}:
1819
arguments: -c $(XA.Build.Configuration) -t:"InstallAvdImage;AcquireAndroidTarget" -p:TestDeviceName=${{ parameters.deviceName }} -p:TestAvdApiLevel=${{ parameters.avdApiLevel }} -p:TestAvdAbi=${{ parameters.avdAbi }} -p:TestAvdType=${{ parameters.avdType }} -p:AvdLaunchTimeoutMinutes=${{ parameters.launchTimeoutMin }} -bl:$(System.DefaultWorkingDirectory)/bin/Test$(XA.Build.Configuration)/install-emulator-${{ parameters.avdApiLevel }}.binlog
1920
${{ else }}:
@@ -25,7 +26,7 @@ steps:
2526
condition: always()
2627
continueOnError: true
2728
inputs:
28-
projects: src/Xamarin.Android.Build.Tasks/Tests/Xamarin.Android.Build.Tests/Emulator.csproj
29+
projects: ${{ parameters.xaSourcePath }}/src/Xamarin.Android.Build.Tasks/Tests/Xamarin.Android.Build.Tests/Emulator.csproj
2930
${{ if eq(parameters.specificImage, true) }}:
3031
arguments: -c $(XA.Build.Configuration) -t:"AcquireAndroidTarget,ReleaseAndroidTarget" -p:TestDeviceName=${{ parameters.deviceName }} -p:TestAvdApiLevel=${{ parameters.avdApiLevel }} -p:TestAvdAbi=${{ parameters.avdAbi }} -p:TestAvdType=${{ parameters.avdType }} -p:AvdLaunchTimeoutMinutes=${{ parameters.launchTimeoutMin }} -bl:$(System.DefaultWorkingDirectory)/bin/Test$(XA.Build.Configuration)/shutdown-emulator.binlog
3132
${{ else }}:

0 commit comments

Comments
 (0)