13
13
variables :
14
14
EDITOR_VERSION : {{ editor.version }}
15
15
commands :
16
- - {{ utr_install_win }}
17
16
- {{ upm_ci_install }}
18
17
# Get version 2.3.0-preview of doctools package (it currently fails for 3.0.0-preview).
19
18
# Automatically makes the documentation tests in APIVerification go live.
28
27
- upm-ci package test --package-path ./Packages/com.unity.inputsystem/ -u %EDITOR_VERSION%
29
28
{% if platform.name == "win" and category.name == "functional" %} --enable-code-coverage --code-coverage-options "generateAdditionalMetrics;generateHtmlReport;assemblyFilters:+Unity.InputSystem;pathReplacePatterns:@*,,Library/PackageCache,Packages" --extra-utr-arg="--coverage-results-path={{ yamato_source_dir_win }}/upm-ci~/test-results/CodeCoverage/Package --coverage-upload-options=\"reportsDir:upm-ci~/test-results/CodeCoverage/Package;name:{{platform.name}}_{{editor.version}}_pkg;flags:{{platform.name}}_{{editor.version}}_pkg\"" {% endif %}
30
29
{% if platform.installscript %}
31
- - {{ unity_downloader_install }}
32
30
- {{ platform.installscript }} %EDITOR_VERSION%
33
31
{% endif %}
34
32
# ADBv2 on 2019.4 causes the test runner to not start on initial import when the
35
33
# samples are in the package. Move the samples back into the project.
36
34
- move /Y .\Packages\com.unity.inputsystem\Samples .\Assets
37
35
- move /Y .\Packages\com.unity.inputsystem\Samples.meta .\Assets
38
36
# Now run our full test suite that sits in Assets/Tests by running UTR on our project.
39
- - ./utr --testproject . --timeout=1200 --editor-location=.Editor --artifacts_path=upm-ci~/test-results/isolation-com.unity.inputsystem.tests --suite=playmode {% if platform.name == "win" %} --suite=editor {% endif %} {% if category.name == "performance" %} --category=Performance {% else %} --category=!Performance {% endif %} --api-profile=NET_4_6 {% if platform.runtime %} --platform {{ platform.runtime }} {% endif %} {% if platform.scripting-backend %} --scripting-backend {{ platform.scripting-backend }} {% endif %} {% if category.name == "performance" %} --report-performance-data --performance-project-id=InputSystem {% endif %} {% if platform.name == "win" and category.name == "functional" %}--enable-code-coverage --coverage-options="generateAdditionalMetrics;generateHtmlReport;assemblyFilters:+Unity.InputSystem" --coverage-results-path={{ yamato_source_dir_win }}/upm-ci~/test-results/CodeCoverage/Project --coverage-upload-options="reportsDir:upm-ci~/test-results/CodeCoverage/Project;name:{{platform.name}}_{{editor.version}}_project;flags:{{platform.name}}_{{editor.version}}_project" {% endif %}
37
+ - UnifiedTestRunner --testproject . --timeout=1200 --editor-location=.Editor --artifacts_path=upm-ci~/test-results/isolation-com.unity.inputsystem.tests --suite=playmode {% if platform.name == "win" %} --suite=editor {% endif %} {% if category.name == "performance" %} --category=Performance {% else %} --category=!Performance {% endif %} --api-profile=NET_4_6 {% if platform.runtime %} --platform {{ platform.runtime }} {% endif %} {% if platform.scripting-backend %} --scripting-backend {{ platform.scripting-backend }} {% endif %} {% if category.name == "performance" %} --report-performance-data --performance-project-id=InputSystem {% endif %} {% if platform.name == "win" and category.name == "functional" %}--enable-code-coverage --coverage-options="generateAdditionalMetrics;generateHtmlReport;assemblyFilters:+Unity.InputSystem" --coverage-results-path={{ yamato_source_dir_win }}/upm-ci~/test-results/CodeCoverage/Project --coverage-upload-options="reportsDir:upm-ci~/test-results/CodeCoverage/Project;name:{{platform.name}}_{{editor.version}}_project;flags:{{platform.name}}_{{editor.version}}_project" {% endif %}
40
38
{% if platform.name == "win" and category.name == "functional" %}
41
39
# Delete the Package and Project reports & raw coverage data, to keep Artifacts.zip smaller
42
40
- rmdir /s/q "{{ yamato_source_dir_win }}/upm-ci~/test-results/CodeCoverage/Package"
68
66
variables :
69
67
EDITOR_VERSION : {{ editor.version }}
70
68
commands :
71
- - {{ utr_install_nix }}
72
69
- {{ upm_ci_install }}
73
70
# Get version 2.3.0-preview of doctools package (it currently fails for 3.0.0-preview).
74
71
# Automatically makes the documentation tests in APIVerification go live.
81
78
# Run upm-ci verification tests as well as tests contained in the package.
82
79
- upm-ci package test --package-path ./Packages/com.unity.inputsystem/ -u $EDITOR_VERSION {% if category.name == "functional" and platform.name == "mac" or platform.name == "linux" %} --enable-code-coverage --code-coverage-options "generateAdditionalMetrics;generateHtmlReport;assemblyFilters:+Unity.InputSystem;pathReplacePatterns:@*,,Library/PackageCache,Packages" --extra-utr-arg="--coverage-results-path={{ yamato_source_dir_nix }}/upm-ci~/test-results/CodeCoverage/Package --coverage-upload-options=\"reportsDir:upm-ci~/test-results/CodeCoverage/Package;name:{{platform.name}}_{{editor.version}}_pkg;flags:{{platform.name}}_{{editor.version}}_pkg\"" {% endif %}
83
80
{% if platform.installscript %}
84
- - {{ unity_downloader_install }}
85
81
- {{ platform.installscript }} $EDITOR_VERSION
86
82
{% endif %}
87
83
# ADBv2 on 2019.4 causes the test runner to not start on initial import when the
88
84
# samples are in the package. Move the samples back into the project.
89
85
- mv ./Packages/com.unity.inputsystem/Samples ./Assets
90
86
- mv ./Packages/com.unity.inputsystem/Samples.meta ./Assets
91
87
# Now run our full test suite that sits in Assets/Tests by running UTR on our project.
92
- - ./utr --testproject . --timeout=1200 --editor-location=.Editor --artifacts_path=upm-ci~/test-results/isolation-com.unity.inputsystem.tests --suite=playmode {% if platform.name == "mac" or platform.name == "linux"%} --suite=editor {% endif %} {% if category.name == "performance" %} --category=Performance {% else %} --category=!Performance {% endif %} --api-profile=NET_4_6 {% if platform.runtime %} --platform {{ platform.runtime }} {% endif %} {% if platform.scripting-backend %} --scripting-backend {{ platform.scripting-backend }} {% endif %} {% if category.name == "performance" %} --report-performance-data --performance-project-id=InputSystem {% endif %} {% if category.name == "functional" and platform.name == "mac" or platform.name == "linux" %} --enable-code-coverage --coverage-options="generateAdditionalMetrics;generateHtmlReport;assemblyFilters:+Unity.InputSystem" --coverage-results-path={{ yamato_source_dir_nix }}/upm-ci~/test-results/CodeCoverage/Project --coverage-upload-options="reportsDir:upm-ci~/test-results/CodeCoverage/Project;name:{{platform.name}}_{{editor.version}}_project;flags:{{platform.name}}_{{editor.version}}_project" {% endif %}
88
+ - UnifiedTestRunner --testproject . --timeout=1200 --editor-location=.Editor --artifacts_path=upm-ci~/test-results/isolation-com.unity.inputsystem.tests --suite=playmode {% if platform.name == "mac" or platform.name == "linux"%} --suite=editor {% endif %} {% if category.name == "performance" %} --category=Performance {% else %} --category=!Performance {% endif %} --api-profile=NET_4_6 {% if platform.runtime %} --platform {{ platform.runtime }} {% endif %} {% if platform.scripting-backend %} --scripting-backend {{ platform.scripting-backend }} {% endif %} {% if category.name == "performance" %} --report-performance-data --performance-project-id=InputSystem {% endif %} {% if category.name == "functional" and platform.name == "mac" or platform.name == "linux" %} --enable-code-coverage --coverage-options="generateAdditionalMetrics;generateHtmlReport;assemblyFilters:+Unity.InputSystem" --coverage-results-path={{ yamato_source_dir_nix }}/upm-ci~/test-results/CodeCoverage/Project --coverage-upload-options="reportsDir:upm-ci~/test-results/CodeCoverage/Project;name:{{platform.name}}_{{editor.version}}_project;flags:{{platform.name}}_{{editor.version}}_project" {% endif %}
93
89
{% if category.name == "functional" and platform.name == "mac" or platform.name == "linux"%}
94
90
# Delete the Package and Project reports & raw coverage data, to keep Artifacts.zip smaller
95
91
- rm -rf {{ yamato_source_dir_nix }}/upm-ci~/test-results/CodeCoverage/Package
@@ -123,10 +119,8 @@ build_ios_{{ editor.version }}_{{ category.name }}:
123
119
EDITOR_VERSION : {{ editor.version }}
124
120
UTR_VERSION : 1.35.1
125
121
commands :
126
- - {{ utr_install_nix }}
127
- - {{ unity_downloader_install }}
128
122
- unity-downloader-cli -c Editor -c iOS -u $EDITOR_VERSION --fast --wait
129
- - ./utr --suite=playmode {% if category.name == "performance" %} --category=Performance {% else %} --category=!Performance {% endif %} --platform=iOS --editor-location=.Editor --testproject=. --player-save-path=build/players --artifacts_path=build/logs --build-only {% if category.name == "performance" %} --report-performance-data --performance-project-id=InputSystem {% endif %}
123
+ - UnifiedTestRunner --suite=playmode {% if category.name == "performance" %} --category=Performance {% else %} --category=!Performance {% endif %} --platform=iOS --editor-location=.Editor --testproject=. --player-save-path=build/players --artifacts_path=build/logs --build-only {% if category.name == "performance" %} --report-performance-data --performance-project-id=InputSystem {% endif %}
130
124
after :
131
125
- {{ instabilities_install_nix }}
132
126
- {{ instabilities_run_mac }}
@@ -153,8 +147,7 @@ run_ios_{{ editor.version }}_{{ category.name }}:
153
147
dependencies :
154
148
- .yamato/upm-ci.yml#build_ios_{{ editor.version }}_{{ category.name }}
155
149
commands :
156
- - {{ utr_install_nix }}
157
- - ./utr --suite=playmode {% if category.name == "performance" %} --category=Performance {% else %} --category=!Performance {% endif %} --platform=iOS --player-load-path=build/players --artifacts_path=build/test-results {% if category.name == "performance" %} --report-performance-data --performance-project-id=InputSystem {% endif %}
150
+ - UnifiedTestRunner --suite=playmode {% if category.name == "performance" %} --category=Performance {% else %} --category=!Performance {% endif %} --platform=iOS --player-load-path=build/players --artifacts_path=build/test-results {% if category.name == "performance" %} --report-performance-data --performance-project-id=InputSystem {% endif %}
158
151
after :
159
152
- {{ instabilities_install_nix }}
160
153
- {{ instabilities_run_mac }}
@@ -173,10 +166,8 @@ build_tvos_{{ editor.version }}_{{ category.name }}:
173
166
EDITOR_VERSION : {{ editor.version }}
174
167
UTR_VERSION : 1.35.1
175
168
commands :
176
- - {{ utr_install_nix }}
177
- - {{ unity_downloader_install }}
178
169
- unity-downloader-cli -c Editor -c AppleTV -u $EDITOR_VERSION --fast --wait
179
- - ./utr --suite=playmode {% if category.name == "performance" %} --category=Performance {% else %} --category=!Performance {% endif %} --platform=tvOS --editor-location=.Editor --testproject=. --player-save-path=build/players --artifacts_path=build/logs --build-only {% if category.name == "performance" %} --report-performance-data --performance-project-id=InputSystem {% endif %}
170
+ - UnifiedTestRunner --suite=playmode {% if category.name == "performance" %} --category=Performance {% else %} --category=!Performance {% endif %} --platform=tvOS --editor-location=.Editor --testproject=. --player-save-path=build/players --artifacts_path=build/logs --build-only {% if category.name == "performance" %} --report-performance-data --performance-project-id=InputSystem {% endif %}
180
171
after :
181
172
- {{ instabilities_install_nix }}
182
173
- {{ instabilities_run_mac }}
@@ -202,8 +193,7 @@ run_tvos_{{ editor.version }}_{{ category.name }}:
202
193
dependencies :
203
194
- .yamato/upm-ci.yml#build_tvos_{{ editor.version }}_{{ category.name }}
204
195
commands :
205
- - {{ utr_install_nix }}
206
- - ./utr --suite=playmode {% if category.name == "performance" %} --category=Performance {% else %} --category=!Performance {% endif %} --platform=tvOS --player-load-path=build/players --artifacts_path=build/test-results {% if category.name == "performance" %} --report-performance-data --performance-project-id=InputSystem {% endif %}
196
+ - UnifiedTestRunner --suite=playmode {% if category.name == "performance" %} --category=Performance {% else %} --category=!Performance {% endif %} --platform=tvOS --player-load-path=build/players --artifacts_path=build/test-results {% if category.name == "performance" %} --report-performance-data --performance-project-id=InputSystem {% endif %}
207
197
after :
208
198
- {{ instabilities_install_nix }}
209
199
- {{ instabilities_run_mac }}
@@ -224,10 +214,8 @@ build_android_{{ editor.version }}_{{ backend.name }}_{{ category.name }}:
224
214
variables :
225
215
EDITOR_VERSION : {{ editor.version }}
226
216
commands :
227
- - {{ utr_install_win }}
228
- - {{ unity_downloader_install }}
229
217
- unity-downloader-cli -c Editor -c Android -u %EDITOR_VERSION% --fast --wait
230
- - ./utr --suite=playmode {% if category.name == "performance" %} --category=Performance {% else %} --category=!Performance {% endif %} --platform=Android --editor-location=.Editor --testproject=. --player-save-path=build/players --artifacts_path=build/logs --scripting-backend={{ backend.name }} --build-only --repository {% if category.name == "performance" %} --performance-project-id=InputSystem {% endif %}
218
+ - UnifiedTestRunner --suite=playmode {% if category.name == "performance" %} --category=Performance {% else %} --category=!Performance {% endif %} --platform=Android --editor-location=.Editor --testproject=. --player-save-path=build/players --artifacts_path=build/logs --scripting-backend={{ backend.name }} --build-only --repository {% if category.name == "performance" %} --performance-project-id=InputSystem {% endif %}
231
219
after :
232
220
- {{ instabilities_install_win }}
233
221
- {{ instabilities_run_win }}
@@ -253,15 +241,14 @@ run_android_{{ editor.version }}_{{ backend.name }}_{{ category.name }}:
253
241
dependencies :
254
242
- .yamato/upm-ci.yml#build_android_{{ editor.version }}_{{ backend.name }}_{{ category.name }}
255
243
commands :
256
- - {{ utr_install_win }}
257
244
- |
258
245
# Set the IP of the device. In case device gets lost, UTR will try to recconect to ANDROID_DEVICE_CONNECTION
259
246
set ANDROID_DEVICE_CONNECTION=%BOKKEN_DEVICE_IP%
260
247
# Establish an ADB connection with the device
261
248
start %ANDROID_SDK_ROOT%\platform-tools\adb.exe connect %BOKKEN_DEVICE_IP%
262
249
# List the connected devices
263
250
start %ANDROID_SDK_ROOT%\platform-tools\adb.exe devices
264
- ./utr --suite=playmode {% if category.name == "performance" %} --category=Performance {% else %} --category=!Performance {% endif %} --platform=android --player-load-path=build/players --artifacts_path=build/test-results {% if category.name == "performance" %} --report-performance-data --performance-project-id=InputSystem {% endif %}
251
+ UnifiedTestRunner --suite=playmode {% if category.name == "performance" %} --category=Performance {% else %} --category=!Performance {% endif %} --platform=android --player-load-path=build/players --artifacts_path=build/test-results {% if category.name == "performance" %} --report-performance-data --performance-project-id=InputSystem {% endif %}
265
252
after :
266
253
- start %ANDROID_SDK_ROOT%\platform-tools\adb.exe connect %BOKKEN_DEVICE_IP%
267
254
- if not exist build\test-results mkdir build\test-results
0 commit comments