2222    #  really work with them. Move them into the package for when we run upm-ci here.
2323    - move /Y .\Assets\Samples .\Packages\com.unity.inputsystem 
2424    - move /Y .\Assets\Samples.meta .\Packages\com.unity.inputsystem 
25+     - npm install upm-ci-utils@stable -g --registry https://artifactory-upload.prd.it.unity3d.com/artifactory/api/npm/upm-npm 
2526    - upm-ci package pack --package-path ./Packages/com.unity.inputsystem/ 
2627    #  Run upm-ci verification tests as well as tests contained in the package.
2728    - upm-ci package test --package-path ./Packages/com.unity.inputsystem/ -u %EDITOR_VERSION% 
3435    - move /Y .\Packages\com.unity.inputsystem\Samples .\Assets 
3536    - move /Y .\Packages\com.unity.inputsystem\Samples.meta .\Assets 
3637    #  Now run our full test suite that sits in Assets/Tests by running UTR on our project.
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 %}
38+     - UnifiedTestRunner --testproject . --timeout=1200 --editor-location=.Editor --artifacts_path=upm-ci~/test-results/isolation-com.unity.inputsystem.tests --clean-library --reruncount=1 --clean-library-on-rerun --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 %}
3839    {% if platform.name == "win" and category.name == "functional" %} 
3940    #  Delete the Package and Project reports & raw coverage data, to keep Artifacts.zip smaller
4041    - rmdir /s/q "{{ yamato_source_dir_win }}/upm-ci~/test-results/CodeCoverage/Package" 
7475    #  really work with them. Move them into the package for when we run upm-ci here.
7576    - mv ./Assets/Samples ./Packages/com.unity.inputsystem 
7677    - mv ./Assets/Samples.meta ./Packages/com.unity.inputsystem 
78+     - npm install upm-ci-utils@stable -g --registry https://artifactory-upload.prd.it.unity3d.com/artifactory/api/npm/upm-npm 
7779    - upm-ci package pack --package-path ./Packages/com.unity.inputsystem/ 
7880    #  Run upm-ci verification tests as well as tests contained in the package.
7981    - 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 %} 
8587    - mv ./Packages/com.unity.inputsystem/Samples ./Assets 
8688    - mv ./Packages/com.unity.inputsystem/Samples.meta ./Assets 
8789    #  Now run our full test suite that sits in Assets/Tests by running UTR on our project.
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 %}
90+     - UnifiedTestRunner --testproject . --timeout=1200 --editor-location=.Editor --artifacts_path=upm-ci~/test-results/isolation-com.unity.inputsystem.tests --clean-library --reruncount=1 --clean-library-on-rerun --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 %}
8991    {% if category.name == "functional" and platform.name == "mac" or platform.name == "linux"%} 
9092    #  Delete the Package and Project reports & raw coverage data, to keep Artifacts.zip smaller
9193    - rm -rf {{ yamato_source_dir_nix }}/upm-ci~/test-results/CodeCoverage/Package 
@@ -118,9 +120,12 @@ build_ios_{{ editor.version }}_{{ category.name }}:
118120  variables :
119121    EDITOR_VERSION : {{ editor.version }} 
120122    UTR_VERSION : 1.35.1 
123+ {% if editor.run_ios_15 %} 
124+     UNITY_HANDLEUIINTERRUPTIONS : 1 
125+ {% endif %} 
121126  commands :
122127    - unity-downloader-cli -c Editor -c iOS -u $EDITOR_VERSION --fast --wait 
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 %} 
128+     - UnifiedTestRunner --suite=playmode --clean-library --reruncount=1 --clean-library-on-rerun  {% 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 %} 
124129  after :
125130    - {{ instabilities_install_nix }} 
126131    - {{ instabilities_run_mac }} 
@@ -137,7 +142,11 @@ run_ios_{{ editor.version }}_{{ category.name }}:
137142  agent :
138143      type : Unity::mobile::iPhone 
139144      image : {{ ios_and_tvos_macos_bokken_image }} 
145+ {% if editor.run_ios_15 %} 
146+       model : SE-Gen3 
147+ {% else %} 
140148      model : SE 
149+ {% endif %} 
141150      flavor : b1.medium 
142151  variables :
143152    EDITOR_VERSION : {{ editor.version }} 
@@ -147,7 +156,7 @@ run_ios_{{ editor.version }}_{{ category.name }}:
147156  dependencies :
148157    - .yamato/upm-ci.yml#build_ios_{{ editor.version }}_{{ category.name }} 
149158  commands :
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 %} 
159+     - UnifiedTestRunner --suite=playmode --clean-library --reruncount=1 --clean-library-on-rerun  {% 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 %} 
151160  after :
152161    - {{ instabilities_install_nix }} 
153162    - {{ instabilities_run_mac }} 
@@ -167,7 +176,7 @@ build_tvos_{{ editor.version }}_{{ category.name }}:
167176    UTR_VERSION : 1.35.1     
168177  commands :
169178    - unity-downloader-cli -c Editor -c AppleTV -u $EDITOR_VERSION --fast --wait 
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 %} 
179+     - UnifiedTestRunner --suite=playmode --clean-library --reruncount=1 --clean-library-on-rerun  {% 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 %} 
171180  after :
172181    - {{ instabilities_install_nix }} 
173182    - {{ instabilities_run_mac }} 
@@ -193,7 +202,7 @@ run_tvos_{{ editor.version }}_{{ category.name }}:
193202  dependencies :
194203    - .yamato/upm-ci.yml#build_tvos_{{ editor.version }}_{{ category.name }} 
195204  commands :
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 %} 
205+     - UnifiedTestRunner --suite=playmode --clean-library --reruncount=1 --clean-library-on-rerun  {% 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 %} 
197206  after :
198207    - {{ instabilities_install_nix }} 
199208    - {{ instabilities_run_mac }} 
@@ -215,7 +224,7 @@ build_android_{{ editor.version }}_{{ backend.name }}_{{ category.name }}:
215224    EDITOR_VERSION : {{ editor.version }} 
216225  commands :
217226    - unity-downloader-cli -c Editor -c Android -u %EDITOR_VERSION% --fast --wait 
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 %} 
227+     - UnifiedTestRunner --suite=playmode --clean-library --reruncount=1 --clean-library-on-rerun  {% 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 %} 
219228  after :
220229    - {{ instabilities_install_win }} 
221230    - {{ instabilities_run_win }}   
@@ -248,7 +257,7 @@ run_android_{{ editor.version }}_{{ backend.name }}_{{ category.name }}:
248257       start %ANDROID_SDK_ROOT%\platform-tools\adb.exe connect %BOKKEN_DEVICE_IP% 
249258       # List the connected devices 
250259       start %ANDROID_SDK_ROOT%\platform-tools\adb.exe devices 
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 %} 
260+        UnifiedTestRunner --suite=playmode --clean-library --reruncount=1 --clean-library-on-rerun  {% 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 %} 
252261after :
253262    - start %ANDROID_SDK_ROOT%\platform-tools\adb.exe connect %BOKKEN_DEVICE_IP% 
254263    - if not exist build\test-results mkdir build\test-results 
0 commit comments