1
1
{% metadata_file .yamato/config.metadata %}
2
2
---
3
3
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
7
7
{{ platform.name }}_{{ editor.version }}_{{ category.name }}:
8
8
name : Build & Run {{ editor.version }} - {{ platform.name }}, {{ category.name }} tests
9
9
agent :
41
41
# Merge all the code coverage results into one report.
42
42
{% if platform.name == "win" and category.name == "functional" %}
43
43
- ' {{ 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
45
45
- rmdir /s/q "{{ yamato_source_dir_win }}/upm-ci~/test-results/CodeCoverage/Package"
46
46
- rmdir /s/q "{{ yamato_source_dir_win }}/upm-ci~/test-results/CodeCoverage/Project"
47
47
{% endif %}
55
55
{% endfor %} # test_category
56
56
{% endfor %} # platforms_win
57
57
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
60
60
{{ platform.name }}_{{ editor.version }}_{{ category.name }}:
61
61
name : Build & Run {{ editor.version }} - {{ platform.name }}, {{ category.name }} tests
62
62
agent :
95
95
{% if platform.name == "linux" and category.name == "functional" %}
96
96
- ' {{ 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'
97
97
{% endif %}
98
+ # Delete the Package and Project reports, only keep the final merged one to keep Aritfacts.zip smaller
98
99
- rm -rf {{ yamato_source_dir_nix }}/upm-ci~/test-results/CodeCoverage/Package
99
100
- rm -rf {{ yamato_source_dir_nix }}/upm-ci~/test-results/CodeCoverage/Project
100
101
after :
108
109
{% endfor %} # platforms_nix
109
110
{% endfor %} # editors
110
111
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
113
114
build_ios_{{ editor.version }}_{{ category.name }} :
114
115
name : Build - {{ editor.version }} - iOS, {{ category.name }} tests
115
116
agent :
116
117
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
118
119
flavor : b1.large
119
120
variables :
120
121
EDITOR_VERSION : {{ editor.version }}
@@ -143,7 +144,9 @@ run_ios_{{ editor.version }}_{{ category.name }}:
143
144
flavor : b1.medium
144
145
variables :
145
146
EDITOR_VERSION : {{ editor.version }}
147
+ # Skip repository cloning
146
148
skip_checkout : true
149
+ # Set a dependency on the build job
147
150
dependencies :
148
151
- .yamato/upm-ci.yml#build_ios_{{ editor.version }}_{{ category.name }}
149
152
commands :
@@ -189,7 +192,9 @@ run_tvos_{{ editor.version }}_{{ category.name }}:
189
192
flavor : b1.medium
190
193
variables :
191
194
EDITOR_VERSION : {{ editor.version }}
195
+ # Skip repository cloning
192
196
skip_checkout : true
197
+ # Set a dependency on the build job
193
198
dependencies :
194
199
- .yamato/upm-ci.yml#build_tvos_{{ editor.version }}_{{ category.name }}
195
200
commands :
@@ -204,8 +209,8 @@ run_tvos_{{ editor.version }}_{{ category.name }}:
204
209
- " build/test-results/**"
205
210
{% endfor %} # test_category
206
211
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
209
214
build_android_{{ editor.version }}_{{ backend.name }}_{{ category.name }} :
210
215
name : Build - {{ editor.version }} - Android {{ backend.name }}, {{ category.name }} tests
211
216
agent :
@@ -288,15 +293,14 @@ all_tests:
288
293
- .yamato/upm-ci.yml#run_tvos_{{ editor.version }}_functional
289
294
{% endif %}
290
295
{% endfor %}
291
- - .yamato/upm-ci .yml#publish_dryrun
296
+ - .yamato/wrench/promotion-jobs .yml#publish_dry_run_inputsystem
292
297
triggers :
293
298
cancel_old_ci : true
294
299
pull_requests :
295
300
- targets :
296
301
only :
297
302
- " develop"
298
303
299
-
300
304
performance_tests_only :
301
305
name : All Performance Tests
302
306
dependencies :
@@ -323,28 +327,4 @@ performance_tests_only:
323
327
- branch : release/1.X
324
328
frequency : weekly
325
329
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