Skip to content

Commit 2d1d717

Browse files
committed
Run tests using test project
1 parent 448ab31 commit 2d1d717

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

.yamato/upm-ci.yml

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -85,22 +85,14 @@ test_Android_{{ editor.version }}:
8585
image: mobile/android-execution-r19:stable
8686
flavor: b1.medium
8787
commands:
88-
- choco source add -n Unity -s {{ artifactory.production }}nuget/unity-choco-local
89-
- choco install unity-config
90-
- unity-config settings editor-path .Editor
91-
- unity-config project create .MyTestProject
92-
{%- for dependency in mobile_dependencies -%}
93-
- unity-config project add dependency {{dependency.name}}@{{dependency.version}} --project-path .MyTestProject
94-
{%- endfor -%}
95-
- unity-config project add testable com.unity.mobile.notifications
9688
- curl -s {{ utr.url_win }} --output utr.bat
9789
- pip install unity-downloader-cli --index-url {{ artifactory.production }}pypi/pypi/simple --upgrade
9890
- unity-downloader-cli -c Editor -c Android -u {{ editor.version }} --wait --fast
99-
- utr.bat --testproject=.MyTestProject --editor-location=.Editor --suite=playmode --platform=android --scripting-backend=mono --artifacts_path=upm-ci~/test-results/android --timeout=900 --extra-editor-arg="-upmNoDefaultPackages" --player-save-path=build/players --build-only
91+
- utr.bat --testproject=TestProjects\com.unity.mobile-notifications-sample --editor-location=.Editor --suite=playmode --platform=android --scripting-backend=mono --artifacts_path=upm-ci~/test-results/android --timeout=900 --extra-editor-arg="-upmNoDefaultPackages" --player-save-path=build/players --build-only
10092
- |
10193
set ANDROID_DEVICE_CONNECTION=%BOKKEN_DEVICE_IP%
10294
start %ANDROID_SDK_ROOT%\platform-tools\adb.exe connect %BOKKEN_DEVICE_IP%
103-
utr.bat --testproject=.MyTestProject --editor-location=.Editor --suite=playmode --platform=android --scripting-backend=mono --artifacts_path=upm-ci~/test-results/android --timeout=900 --player-load-path=build/players
95+
utr.bat --testproject=TestProjects\com.unity.mobile-notifications-sample --editor-location=.Editor --suite=playmode --platform=android --scripting-backend=mono --artifacts_path=upm-ci~/test-results/android --timeout=900 --player-load-path=build/players
10496
after:
10597
- start %ANDROID_SDK_ROOT%\platform-tools\adb.exe connect %BOKKEN_DEVICE_IP%
10698
- powershell %ANDROID_SDK_ROOT%\platform-tools\adb.exe logcat -d > upm-ci~/test-results/android/android_device_log.txt

0 commit comments

Comments
 (0)