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.
2827 - upm-ci package test --package-path ./Packages/com.unity.inputsystem/ -u %EDITOR_VERSION%
2928 {% 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 %}
3029 {% if platform.installscript %}
31- - {{ unity_downloader_install }}
3230 - {{ platform.installscript }} %EDITOR_VERSION%
3331 {% endif %}
3432 # ADBv2 on 2019.4 causes the test runner to not start on initial import when the
3533 # samples are in the package. Move the samples back into the project.
3634 - move /Y .\Packages\com.unity.inputsystem\Samples .\Assets
3735 - move /Y .\Packages\com.unity.inputsystem\Samples.meta .\Assets
3836 # 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 %}
4038 {% if platform.name == "win" and category.name == "functional" %}
4139 # Delete the Package and Project reports & raw coverage data, to keep Artifacts.zip smaller
4240 - rmdir /s/q "{{ yamato_source_dir_win }}/upm-ci~/test-results/CodeCoverage/Package"
6866 variables :
6967 EDITOR_VERSION : {{ editor.version }}
7068 commands :
71- - {{ utr_install_nix }}
7269 - {{ upm_ci_install }}
7370 # Get version 2.3.0-preview of doctools package (it currently fails for 3.0.0-preview).
7471 # Automatically makes the documentation tests in APIVerification go live.
8178 # Run upm-ci verification tests as well as tests contained in the package.
8279 - 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 %}
8380 {% if platform.installscript %}
84- - {{ unity_downloader_install }}
8581 - {{ platform.installscript }} $EDITOR_VERSION
8682 {% endif %}
8783 # ADBv2 on 2019.4 causes the test runner to not start on initial import when the
8884 # samples are in the package. Move the samples back into the project.
8985 - mv ./Packages/com.unity.inputsystem/Samples ./Assets
9086 - mv ./Packages/com.unity.inputsystem/Samples.meta ./Assets
9187 # 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 %}
9389 {% if category.name == "functional" and platform.name == "mac" or platform.name == "linux"%}
9490 # Delete the Package and Project reports & raw coverage data, to keep Artifacts.zip smaller
9591 - rm -rf {{ yamato_source_dir_nix }}/upm-ci~/test-results/CodeCoverage/Package
@@ -121,11 +117,10 @@ build_ios_{{ editor.version }}_{{ category.name }}:
121117 flavor : b1.large
122118 variables :
123119 EDITOR_VERSION : {{ editor.version }}
120+ UTR_VERSION : 1.35.1
124121 commands :
125- - {{ utr_install_nix }}
126- - {{ unity_downloader_install }}
127122 - 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 %}
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 %}
129124 after :
130125 - {{ instabilities_install_nix }}
131126 - {{ instabilities_run_mac }}
@@ -152,8 +147,7 @@ run_ios_{{ editor.version }}_{{ category.name }}:
152147 dependencies :
153148 - .yamato/upm-ci.yml#build_ios_{{ editor.version }}_{{ category.name }}
154149 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 %}
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 %}
157151 after :
158152 - {{ instabilities_install_nix }}
159153 - {{ instabilities_run_mac }}
@@ -170,11 +164,10 @@ build_tvos_{{ editor.version }}_{{ category.name }}:
170164 flavor : b1.large
171165 variables :
172166 EDITOR_VERSION : {{ editor.version }}
167+ UTR_VERSION : 1.35.1
173168 commands :
174- - {{ utr_install_nix }}
175- - {{ unity_downloader_install }}
176169 - 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 %}
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 %}
178171 after :
179172 - {{ instabilities_install_nix }}
180173 - {{ instabilities_run_mac }}
@@ -200,8 +193,7 @@ run_tvos_{{ editor.version }}_{{ category.name }}:
200193 dependencies :
201194 - .yamato/upm-ci.yml#build_tvos_{{ editor.version }}_{{ category.name }}
202195 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 %}
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 %}
205197 after :
206198 - {{ instabilities_install_nix }}
207199 - {{ instabilities_run_mac }}
@@ -222,10 +214,8 @@ build_android_{{ editor.version }}_{{ backend.name }}_{{ category.name }}:
222214 variables :
223215 EDITOR_VERSION : {{ editor.version }}
224216 commands :
225- - {{ utr_install_win }}
226- - {{ unity_downloader_install }}
227217 - 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 %}
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 %}
229219 after :
230220 - {{ instabilities_install_win }}
231221 - {{ instabilities_run_win }}
@@ -251,15 +241,14 @@ run_android_{{ editor.version }}_{{ backend.name }}_{{ category.name }}:
251241 dependencies :
252242 - .yamato/upm-ci.yml#build_android_{{ editor.version }}_{{ backend.name }}_{{ category.name }}
253243 commands :
254- - {{ utr_install_win }}
255244 - |
256245 # Set the IP of the device. In case device gets lost, UTR will try to recconect to ANDROID_DEVICE_CONNECTION
257246 set ANDROID_DEVICE_CONNECTION=%BOKKEN_DEVICE_IP%
258247 # Establish an ADB connection with the device
259248 start %ANDROID_SDK_ROOT%\platform-tools\adb.exe connect %BOKKEN_DEVICE_IP%
260249 # List the connected devices
261250 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 %}
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 %}
263252 after :
264253 - start %ANDROID_SDK_ROOT%\platform-tools\adb.exe connect %BOKKEN_DEVICE_IP%
265254 - if not exist build\test-results mkdir build\test-results
0 commit comments