1
1
test_editors :
2
2
- version : trunk
3
3
- version : 2022.1
4
- - version : 2021.2
5
- - version : 2020.3
6
-
7
- ios_test_editors :
8
- - version : trunk
9
- - version : 2022.1
10
- - version : 2021.2
4
+ - version : 2021.3
11
5
- version : 2020.3
12
6
13
7
test_platforms :
@@ -19,17 +13,6 @@ test_platforms:
19
13
artifactory :
20
14
production : https://artifactory.prd.it.unity3d.com/artifactory/api/
21
15
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
-
33
16
utr :
34
17
url_win : https://artifactory.prd.it.unity3d.com/artifactory/unity-tools-local/utr-standalone/utr.bat
35
18
url_unix : https://artifactory.prd.it.unity3d.com/artifactory/unity-tools-local/utr-standalone/utr
@@ -85,22 +68,14 @@ test_Android_{{ editor.version }}:
85
68
image : mobile/android-execution-r19:stable
86
69
flavor : b1.medium
87
70
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
96
71
- curl -s {{ utr.url_win }} --output utr.bat
97
72
- pip install unity-downloader-cli --index-url {{ artifactory.production }}pypi/pypi/simple --upgrade
98
73
- 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
74
+ - 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
100
75
- |
101
76
set ANDROID_DEVICE_CONNECTION=%BOKKEN_DEVICE_IP%
102
77
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
78
+ 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
104
79
after :
105
80
- start %ANDROID_SDK_ROOT%\platform-tools\adb.exe connect %BOKKEN_DEVICE_IP%
106
81
- powershell %ANDROID_SDK_ROOT%\platform-tools\adb.exe logcat -d > upm-ci~/test-results/android/android_device_log.txt
@@ -112,7 +87,7 @@ test_Android_{{ editor.version }}:
112
87
- .yamato/upm-ci.yml#pack
113
88
{% endfor %}
114
89
115
- {% for editor in ios_test_editors %}
90
+ {% for editor in test_editors %}
116
91
test_iOS_{{ editor.version }} :
117
92
name : Test {{ editor.version }} on iOS
118
93
agent :
@@ -122,20 +97,12 @@ test_iOS_{{ editor.version }}:
122
97
variables :
123
98
IOS_SIMULATOR_SDK : 1
124
99
commands :
125
- -
brew tap --force-auto-update unity/unity [email protected] :unity/homebrew-unity.git
126
- - brew install unity-config
127
- - unity-config settings editor-path .Editor
128
- - unity-config project create .MyTestProject
129
- {%- for dependency in mobile_dependencies -%}
130
- - unity-config project add dependency {{dependency.name}}@{{dependency.version}} --project-path .MyTestProject
131
- {%- endfor -%}
132
- - unity-config project add testable com.unity.mobile.notifications
133
100
- curl -s {{ utr.url_unix }} --output utr
134
101
- chmod u+x utr
135
102
- pip install unity-downloader-cli --index-url {{ artifactory.production }}pypi/pypi/simple --upgrade
136
103
- unity-downloader-cli -c Editor -c iOS -u {{ editor.version }} --wait --fast
137
- - ./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
138
- - ./utr --testproject=.MyTestProject --editor-location=.Editor --suite=playmode --platform=ios --artifacts_path=upm-ci~/test-results/ios --timeout=900 --player-load-path=build/players
104
+ - ./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
105
+ - ./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
139
106
artifacts :
140
107
packages :
141
108
paths :
@@ -170,8 +137,6 @@ test_trigger:
170
137
- .yamato/upm-ci.yml#test_{{ platform.name }}_{{ editor.version }}
171
138
{% endfor %}
172
139
- .yamato/upm-ci.yml#test_Android_{{ editor.version }}
173
- {% endfor %}
174
- {% for editor in ios_test_editors %}
175
140
- .yamato/upm-ci.yml#test_iOS_{{ editor.version }}
176
141
{% endfor %}
177
142
0 commit comments