1313 variables :
1414 EDITOR_VERSION : {{ editor.version }}
1515 commands :
16- - {{ utr_install_win }}
1716 - {{ upm_ci_install }}
1817 # Get version 2.3.0-preview of doctools package (it currently fails for 3.0.0-preview).
1918 # Automatically makes the documentation tests in APIVerification go live.
3635 - move /Y .\Packages\com.unity.inputsystem\Samples .\Assets
3736 - move /Y .\Packages\com.unity.inputsystem\Samples.meta .\Assets
3837 # 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 %}
38+ - 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 %}
4039 {% if platform.name == "win" and category.name == "functional" %}
4140 # Delete the Package and Project reports & raw coverage data, to keep Artifacts.zip smaller
4241 - rmdir /s/q "{{ yamato_source_dir_win }}/upm-ci~/test-results/CodeCoverage/Package"
6867 variables :
6968 EDITOR_VERSION : {{ editor.version }}
7069 commands :
71- - {{ utr_install_nix }}
7270 - {{ upm_ci_install }}
7371 # Get version 2.3.0-preview of doctools package (it currently fails for 3.0.0-preview).
7472 # Automatically makes the documentation tests in APIVerification go live.
8987 - mv ./Packages/com.unity.inputsystem/Samples ./Assets
9088 - mv ./Packages/com.unity.inputsystem/Samples.meta ./Assets
9189 # 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 %}
90+ - 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 %}
9391 {% if category.name == "functional" and platform.name == "mac" or platform.name == "linux"%}
9492 # Delete the Package and Project reports & raw coverage data, to keep Artifacts.zip smaller
9593 - rm -rf {{ yamato_source_dir_nix }}/upm-ci~/test-results/CodeCoverage/Package
@@ -122,10 +120,9 @@ build_ios_{{ editor.version }}_{{ category.name }}:
122120 variables :
123121 EDITOR_VERSION : {{ editor.version }}
124122 commands :
125- - {{ utr_install_nix }}
126123 - {{ unity_downloader_install }}
127124 - unity-downloader-cli -c Editor -c iOS -u $EDITOR_VERSION --fast --wait
128- - ./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 %}
125+ - 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 %}
129126 after :
130127 - {{ instabilities_install_nix }}
131128 - {{ instabilities_run_mac }}
@@ -152,8 +149,7 @@ run_ios_{{ editor.version }}_{{ category.name }}:
152149 dependencies :
153150 - .yamato/upm-ci.yml#build_ios_{{ editor.version }}_{{ category.name }}
154151 commands :
155- - {{ utr_install_nix }}
156- - ./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 %}
152+ - 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 %}
157153 after :
158154 - {{ instabilities_install_nix }}
159155 - {{ instabilities_run_mac }}
@@ -171,10 +167,9 @@ build_tvos_{{ editor.version }}_{{ category.name }}:
171167 variables :
172168 EDITOR_VERSION : {{ editor.version }}
173169 commands :
174- - {{ utr_install_nix }}
175170 - {{ unity_downloader_install }}
176171 - unity-downloader-cli -c Editor -c AppleTV -u $EDITOR_VERSION --fast --wait
177- - ./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 %}
172+ - 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 %}
178173 after :
179174 - {{ instabilities_install_nix }}
180175 - {{ instabilities_run_mac }}
@@ -200,8 +195,7 @@ run_tvos_{{ editor.version }}_{{ category.name }}:
200195 dependencies :
201196 - .yamato/upm-ci.yml#build_tvos_{{ editor.version }}_{{ category.name }}
202197 commands :
203- - {{ utr_install_nix }}
204- - ./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 %}
198+ - 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 %}
205199 after :
206200 - {{ instabilities_install_nix }}
207201 - {{ instabilities_run_mac }}
@@ -222,10 +216,9 @@ build_android_{{ editor.version }}_{{ backend.name }}_{{ category.name }}:
222216 variables :
223217 EDITOR_VERSION : {{ editor.version }}
224218 commands :
225- - {{ utr_install_win }}
226219 - {{ unity_downloader_install }}
227220 - unity-downloader-cli -c Editor -c Android -u %EDITOR_VERSION% --fast --wait
228- - ./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 %}
221+ - 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 %}
229222 after :
230223 - {{ instabilities_install_win }}
231224 - {{ instabilities_run_win }}
@@ -251,15 +244,14 @@ run_android_{{ editor.version }}_{{ backend.name }}_{{ category.name }}:
251244 dependencies :
252245 - .yamato/upm-ci.yml#build_android_{{ editor.version }}_{{ backend.name }}_{{ category.name }}
253246 commands :
254- - {{ utr_install_win }}
255247 - |
256248 # Set the IP of the device. In case device gets lost, UTR will try to recconect to ANDROID_DEVICE_CONNECTION
257249 set ANDROID_DEVICE_CONNECTION=%BOKKEN_DEVICE_IP%
258250 # Establish an ADB connection with the device
259251 start %ANDROID_SDK_ROOT%\platform-tools\adb.exe connect %BOKKEN_DEVICE_IP%
260252 # List the connected devices
261253 start %ANDROID_SDK_ROOT%\platform-tools\adb.exe devices
262- ./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 %}
254+ 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 %}
263255 after :
264256 - start %ANDROID_SDK_ROOT%\platform-tools\adb.exe connect %BOKKEN_DEVICE_IP%
265257 - if not exist build\test-results mkdir build\test-results
0 commit comments