Skip to content

Commit

Permalink
chore: Adjust android tests replace
Browse files Browse the repository at this point in the history
  • Loading branch information
jeromelaban committed Nov 27, 2024
1 parent b4d0f16 commit 7c60e10
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions build/scripts/android-uitest-run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ export UNO_UITEST_ANDROID_PROJECT=$BUILD_SOURCESDIRECTORY/Uno.Gallery
export UNO_UITEST_BINARY=$BUILD_SOURCESDIRECTORY/Uno.Gallery.UITests/bin/Release/net47/Uno.Gallery.UITests.dll
export UNO_EMULATOR_INSTALLED=$BUILD_SOURCESDIRECTORY/build/.emulator_started
export UITEST_TEST_TIMEOUT=60m
export UNO_UITEST_ANDROIDAPK_PATH=$UNO_UITEST_ANDROIDAPK_BASEPATH/com.nventive.uno.ui.demo-Signed.apk

# Override Android SDK tooling
export ANDROID_HOME=$BUILD_SOURCESDIRECTORY/build/android-sdk
Expand Down
2 changes: 1 addition & 1 deletion build/stage-uitests-android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
- template: templates/canary-updater.yml

- bash: |
export UNO_UITEST_ANDROIDAPK_PATH=$(Pipeline.Workspace)/Android_UITest/com.nventive.uno.ui.demo-Signed.apk
export UNO_UITEST_ANDROIDAPK_BASEPATH=$(Pipeline.Workspace)/Android_UITest
chmod +x $(build.sourcesdirectory)/build/scripts/android-uitest-run.sh
$(build.sourcesdirectory)/build/scripts/android-uitest-run.sh
displayName: Run Android Tests
Expand Down
2 changes: 1 addition & 1 deletion build/templates/canary-updater.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ steps:
condition: startsWith(variables['Build.SourceBranch'], 'refs/heads/canaries')
- pwsh: |
gci -r -include AndroidManifest.xml,android-uitest-run.sh |
gci -r -include AndroidManifest.xml,android-uitest-*.sh |
foreach-object {
$a = $_.fullname; ( get-content $a ) |
foreach-object { $_ -replace "com.nventive.uno.ui.demo","com.nventive.uno.ui.demo.canary" } |
Expand Down

0 comments on commit 7c60e10

Please sign in to comment.