Skip to content

Commit 1b84081

Browse files
committed
Use test project for iOS test too
1 parent 2d1d717 commit 1b84081

File tree

1 file changed

+2
-21
lines changed

1 file changed

+2
-21
lines changed

.yamato/upm-ci.yml

Lines changed: 2 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -19,17 +19,6 @@ test_platforms:
1919
artifactory:
2020
production: https://artifactory.prd.it.unity3d.com/artifactory/api/
2121

22-
mobile_dependencies:
23-
- unity_test_framework:
24-
name: com.unity.test-framework.build
25-
version: 0.0.1-preview.12
26-
- performance_test_framework:
27-
name: com.unity.test-framework.utp-reporter
28-
version: 1.0.0-preview
29-
- mobile_notifications:
30-
name: com.unity.mobile.notifications
31-
version: file:../../com.unity.mobile.notifications
32-
3322
utr:
3423
url_win: https://artifactory.prd.it.unity3d.com/artifactory/unity-tools-local/utr-standalone/utr.bat
3524
url_unix: https://artifactory.prd.it.unity3d.com/artifactory/unity-tools-local/utr-standalone/utr
@@ -114,20 +103,12 @@ test_iOS_{{ editor.version }}:
114103
variables:
115104
IOS_SIMULATOR_SDK: 1
116105
commands:
117-
- brew tap --force-auto-update unity/unity [email protected]:unity/homebrew-unity.git
118-
- brew install unity-config
119-
- unity-config settings editor-path .Editor
120-
- unity-config project create .MyTestProject
121-
{%- for dependency in mobile_dependencies -%}
122-
- unity-config project add dependency {{dependency.name}}@{{dependency.version}} --project-path .MyTestProject
123-
{%- endfor -%}
124-
- unity-config project add testable com.unity.mobile.notifications
125106
- curl -s {{ utr.url_unix }} --output utr
126107
- chmod u+x utr
127108
- pip install unity-downloader-cli --index-url {{ artifactory.production }}pypi/pypi/simple --upgrade
128109
- unity-downloader-cli -c Editor -c iOS -u {{ editor.version }} --wait --fast
129-
- ./utr --testproject=.MyTestProject --editor-location=.Editor --suite=playmode --platform=ios --artifacts_path=upm-ci~/test-results/ios --timeout=900 --extra-editor-arg="-upmNoDefaultPackages" --player-save-path=build/players --build-only
130-
- ./utr --testproject=.MyTestProject --editor-location=.Editor --suite=playmode --platform=ios --artifacts_path=upm-ci~/test-results/ios --timeout=900 --player-load-path=build/players
110+
- ./utr --testproject=TestProjects\com.unity.mobile-notifications-sample --editor-location=.Editor --suite=playmode --platform=ios --artifacts_path=upm-ci~/test-results/ios --timeout=900 --extra-editor-arg="-upmNoDefaultPackages" --player-save-path=build/players --build-only
111+
- ./utr --testproject=TestProjects\com.unity.mobile-notifications-sample --editor-location=.Editor --suite=playmode --platform=ios --artifacts_path=upm-ci~/test-results/ios --timeout=900 --player-load-path=build/players
131112
artifacts:
132113
packages:
133114
paths:

0 commit comments

Comments
 (0)