11{% metadata_file .yamato/config.metadata %}
22---
33
4- {% for editor in editors %}
5- {% for platform in platforms_win %}
6- {% for category in test_category %}
4+ {% for editor in editors %} # all supported editor versions
5+ {% for platform in platforms_win %} # Windows Editor, Standalone (Mono), Standalone (IL2CPP)
6+ {% for category in test_category %} # functional, performance
77{{ platform.name }}_{{ editor.version }}_{{ category.name }}:
88 name : Build & Run {{ editor.version }} - {{ platform.name }}, {{ category.name }} tests
99 agent :
4141 # Merge all the code coverage results into one report.
4242 {% if platform.name == "win" and category.name == "functional" %}
4343 - ' {{ yamato_source_dir_win }}/.Editor/Unity.exe -projectPath {{ yamato_source_dir_win }} -batchmode -debugCodeOptimization -enableCodeCoverage -coverageResultsPath {{ yamato_source_dir_win }}/upm-ci~/test-results/CodeCoverage/ -coverageOptions "generateAdditionalMetrics;generateHtmlReport;assemblyFilters:+Unity.InputSystem;sourcePaths:{{ yamato_source_dir_win }}/Packages/com.unity.inputsystem/" -quit'
44- # delete the reports from the two runs and only keep the final merged one
44+ # Delete the Package and Project reports, only keep the final merged one to keep Aritfacts.zip smaller
4545 - rmdir /s/q "{{ yamato_source_dir_win }}/upm-ci~/test-results/CodeCoverage/Package"
4646 - rmdir /s/q "{{ yamato_source_dir_win }}/upm-ci~/test-results/CodeCoverage/Project"
4747 {% endif %}
5555{% endfor %} # test_category
5656{% endfor %} # platforms_win
5757
58- {% for platform in platforms_nix %}
59- {% for category in test_category %}
58+ {% for platform in platforms_nix %} # Mac Editor, Standalone (Mono), Standalone (IL2CPP), Linux Editor, Standalone (Mono), Standalone (IL2CPP)
59+ {% for category in test_category %} # functional, performance
6060{{ platform.name }}_{{ editor.version }}_{{ category.name }}:
6161 name : Build & Run {{ editor.version }} - {{ platform.name }}, {{ category.name }} tests
6262 agent :
9595 {% if platform.name == "linux" and category.name == "functional" %}
9696 - ' {{ yamato_source_dir_nix }}/.Editor/Unity -projectPath {{ yamato_source_dir_nix }} -batchmode -debugCodeOptimization -enableCodeCoverage -coverageResultsPath {{ yamato_source_dir_nix }}/upm-ci~/test-results/CodeCoverage/ -coverageOptions "generateAdditionalMetrics;generateHtmlReport;assemblyFilters:+Unity.InputSystem;sourcePaths:{{ yamato_source_dir_nix }}/Packages/com.unity.inputsystem/" -quit'
9797 {% endif %}
98+ # Delete the Package and Project reports, only keep the final merged one to keep Aritfacts.zip smaller
9899 - rm -rf {{ yamato_source_dir_nix }}/upm-ci~/test-results/CodeCoverage/Package
99100 - rm -rf {{ yamato_source_dir_nix }}/upm-ci~/test-results/CodeCoverage/Project
100101 after :
108109{% endfor %} # platforms_nix
109110{% endfor %} # editors
110111
111- {% for editor in editors %}
112- {% for category in test_category %}
112+ {% for editor in editors %} # all supported editor versions
113+ {% for category in test_category %} # fucntional, performance
113114build_ios_{{ editor.version }}_{{ category.name }} :
114115 name : Build - {{ editor.version }} - iOS, {{ category.name }} tests
115116 agent :
116117 type : Unity::VM::osx
117- image : {{ ios_and_tvos_macos_bokken_image }}
118+ image : {{ ios_and_tvos_macos_bokken_image }} # image version pinned in config, because new Xcode keeps breaking us
118119 flavor : b1.large
119120 variables :
120121 EDITOR_VERSION : {{ editor.version }}
@@ -143,7 +144,9 @@ run_ios_{{ editor.version }}_{{ category.name }}:
143144 flavor : b1.medium
144145 variables :
145146 EDITOR_VERSION : {{ editor.version }}
147+ # Skip repository cloning
146148 skip_checkout : true
149+ # Set a dependency on the build job
147150 dependencies :
148151 - .yamato/upm-ci.yml#build_ios_{{ editor.version }}_{{ category.name }}
149152 commands :
@@ -189,7 +192,9 @@ run_tvos_{{ editor.version }}_{{ category.name }}:
189192 flavor : b1.medium
190193 variables :
191194 EDITOR_VERSION : {{ editor.version }}
195+ # Skip repository cloning
192196 skip_checkout : true
197+ # Set a dependency on the build job
193198 dependencies :
194199 - .yamato/upm-ci.yml#build_tvos_{{ editor.version }}_{{ category.name }}
195200 commands :
@@ -204,8 +209,8 @@ run_tvos_{{ editor.version }}_{{ category.name }}:
204209 - " build/test-results/**"
205210{% endfor %} # test_category
206211
207- {% for backend in scripting_backends %}
208- {% for category in test_category %}
212+ {% for backend in scripting_backends %} # Mono, IL2CPP
213+ {% for category in test_category %} # functional, performance
209214build_android_{{ editor.version }}_{{ backend.name }}_{{ category.name }} :
210215 name : Build - {{ editor.version }} - Android {{ backend.name }}, {{ category.name }} tests
211216 agent :
@@ -288,15 +293,14 @@ all_tests:
288293 - .yamato/upm-ci.yml#run_tvos_{{ editor.version }}_functional
289294 {% endif %}
290295 {% endfor %}
291- - .yamato/upm-ci .yml#publish_dryrun
296+ - .yamato/wrench/promotion-jobs .yml#publish_dry_run_inputsystem
292297 triggers :
293298 cancel_old_ci : true
294299 pull_requests :
295300 - targets :
296301 only :
297302 - " develop"
298303
299-
300304performance_tests_only :
301305 name : All Performance Tests
302306 dependencies :
@@ -323,28 +327,4 @@ performance_tests_only:
323327 - branch : release/1.X
324328 frequency : weekly
325329 rerun : always
326-
327- {% for run in (1..2) %}
328- publish{% cycle "", "_dryrun" %} :
329- name : Publish to Internal Registry {% cycle "", "(Dry Run)" %}
330- agent :
331- type : Unity::VM
332- image : package-ci/win10:default
333- flavor : b1.large
334- variables :
335- UPMCI_ENABLE_PACKAGE_SIGNING : 1
336- commands :
337- - {{ upm_ci_install }}
338- - move /Y .\Assets\Samples .\Packages\com.unity.inputsystem
339- - move /Y .\Assets\Samples.meta .\Packages\com.unity.inputsystem
340- - upm-ci package pack --package-path ./Packages/com.unity.inputsystem/
341- - upm-ci package test --package-path ./Packages/com.unity.inputsystem/ -u 2021.3
342- - upm-ci package publish --package-path ./Packages/com.unity.inputsystem/ {% cycle "", "--dry-run" %}
343- - upm-pvp xray --packages "upm-ci~/packages/*.tgz" --results upm-ci~/xray
344- - upm-pvp require "supported rme" --no-report --allow-missing --results upm-ci~/xray --exemptions upm-ci~/xray/new-exemptions.json
345- - upm-pvp require "supported rme ./.yamato/PVPexemptions.json" --allow-missing --results upm-ci~/xray
346- artifacts :
347- artifacts :
348- paths :
349- - " upm-ci~/packages/*.tgz"
350- {% endfor %}
330+
0 commit comments