10
10
type : {{ platform.type }}
11
11
image : {{ platform.image }}
12
12
flavor : {{ platform.flavor }}
13
+ variables :
14
+ EDITOR_VERSION : {{ editor.version }}
13
15
commands :
14
16
- {{ utr_install_win }}
15
17
- {{ upm_ci_install }}
23
25
- move /Y .\Assets\Samples.meta .\Packages\com.unity.inputsystem
24
26
- upm-ci package pack --package-path ./Packages/com.unity.inputsystem/
25
27
# Run upm-ci verification tests as well as tests contained in the package.
26
- - upm-ci package test --package-path ./Packages/com.unity.inputsystem/ -u {{ editor.version }}
28
+ - upm-ci package test --package-path ./Packages/com.unity.inputsystem/ -u %EDITOR_VERSION%
27
29
{% if platform.name == "win" %} --enable-code-coverage --code-coverage-options "generateAdditionalMetrics;generateHtmlReport;assemblyFilters:+Unity.InputSystem"
28
30
--extra-utr-arg="--coverage-results-path={{ yamato_source_dir_win }}/upm-ci~/test-results/CodeCoverage/Package" {% endif %}
29
31
{% if platform.installscript %}
30
32
- {{ unity_downloader_install }}
31
- - {{ platform.installscript }} {{ editor.version }}
33
+ - {{ platform.installscript }} %EDITOR_VERSION%
32
34
{% endif %}
33
35
# ADBv2 on 2019.4 causes the test runner to not start on initial import when the
34
36
# samples are in the package. Move the samples back into the project.
54
56
type : {{ platform.type }}
55
57
image : {{ platform.image }}
56
58
flavor : {{ platform.flavor }}
59
+ variables :
60
+ EDITOR_VERSION : {{ editor.version }}
57
61
commands :
58
62
- {{ utr_install_nix }}
59
63
- {{ upm_ci_install }}
66
70
- mv ./Assets/Samples.meta ./Packages/com.unity.inputsystem
67
71
- upm-ci package pack --package-path ./Packages/com.unity.inputsystem/
68
72
# Run upm-ci verification tests as well as tests contained in the package.
69
- - upm-ci package test --package-path ./Packages/com.unity.inputsystem/ -u {{ editor.version }} {% if platform.name == "mac" or platform.name == "linux" %} --enable-code-coverage --code-coverage-options "generateAdditionalMetrics;generateHtmlReport;assemblyFilters:+Unity.InputSystem" --extra-utr-arg="--coverage-results-path={{ yamato_source_dir_nix }}/upm-ci~/test-results/CodeCoverage/Package" {% endif %}
73
+ - upm-ci package test --package-path ./Packages/com.unity.inputsystem/ -u $EDITOR_VERSION {% if platform.name == "mac" or platform.name == "linux" %} --enable-code-coverage --code-coverage-options "generateAdditionalMetrics;generateHtmlReport;assemblyFilters:+Unity.InputSystem" --extra-utr-arg="--coverage-results-path={{ yamato_source_dir_nix }}/upm-ci~/test-results/CodeCoverage/Package" {% endif %}
70
74
{% if platform.installscript %}
71
75
- {{ unity_downloader_install }}
72
- - {{ platform.installscript }} {{ editor.version }}
76
+ - {{ platform.installscript }} $EDITOR_VERSION
73
77
{% endif %}
74
78
# ADBv2 on 2019.4 causes the test runner to not start on initial import when the
75
79
# samples are in the package. Move the samples back into the project.
@@ -96,10 +100,12 @@ build_ios_{{ editor.version }}_{{ category.name }}:
96
100
type : Unity::VM::osx
97
101
image : {{ ios_and_tvos_macos_bokken_image }}
98
102
flavor : b1.large
103
+ variables :
104
+ EDITOR_VERSION : {{ editor.version }}
99
105
commands :
100
106
- {{ utr_install_nix }}
101
107
- {{ unity_downloader_install }}
102
- - unity-downloader-cli -c Editor -c iOS -u {{ editor.version }} --fast --wait
108
+ - unity-downloader-cli -c Editor -c iOS -u $EDITOR_VERSION --fast --wait
103
109
- ./utr --suite=playmode {% if category.name == "performance" %} --category=Performance {% endif %} --platform=iOS --editor-location=.Editor --testproject=. --player-save-path=build/players --artifacts_path=build/logs --build-only --report-performance-data --performance-project-id=InputSystem
104
110
after :
105
111
- {{ instabilities_install_nix }}
@@ -119,6 +125,8 @@ run_ios_{{ editor.version }}_{{ category.name }}:
119
125
image : {{ ios_and_tvos_macos_bokken_image }}
120
126
model : SE
121
127
flavor : b1.medium
128
+ variables :
129
+ EDITOR_VERSION : {{ editor.version }}
122
130
skip_checkout : true
123
131
dependencies :
124
132
- .yamato/upm-ci.yml#build_ios_{{ editor.version }}_{{ category.name }}
@@ -140,10 +148,12 @@ build_tvos_{{ editor.version }}:
140
148
type : Unity::VM::osx
141
149
image : {{ ios_and_tvos_macos_bokken_image }}
142
150
flavor : b1.large
151
+ variables :
152
+ EDITOR_VERSION : {{ editor.version }}
143
153
commands :
144
154
- {{ utr_install_nix }}
145
155
- {{ unity_downloader_install }}
146
- - unity-downloader-cli -c Editor -c AppleTV -u {{ editor.version }} --fast --wait
156
+ - unity-downloader-cli -c Editor -c AppleTV -u $EDITOR_VERSION --fast --wait
147
157
- ./utr --suite=playmode --platform=tvOS --editor-location=.Editor --testproject=. --player-save-path=build/players --artifacts_path=build/logs --build-only --report-performance-data --performance-project-id=InputSystem
148
158
after :
149
159
- {{ instabilities_install_nix }}
@@ -162,6 +172,8 @@ run_tvos_{{ editor.version }}:
162
172
type : Unity::mobile::appletv
163
173
image : {{ ios_and_tvos_macos_bokken_image }}
164
174
flavor : b1.medium
175
+ variables :
176
+ EDITOR_VERSION : {{ editor.version }}
165
177
skip_checkout : true
166
178
dependencies :
167
179
- .yamato/upm-ci.yml#build_tvos_{{ editor.version }}
@@ -184,10 +196,12 @@ build_android_{{ editor.version }}_{{ backend.name }}_{{ category.name }}:
184
196
type : Unity::VM
185
197
image : package-ci/win10:default
186
198
flavor : b1.xlarge
199
+ variables :
200
+ EDITOR_VERSION : {{ editor.version }}
187
201
commands :
188
202
- {{ utr_install_win }}
189
203
- {{ unity_downloader_install }}
190
- - unity-downloader-cli -c Editor -c Android -u {{ editor.version }} --fast --wait
204
+ - unity-downloader-cli -c Editor -c Android -u %EDITOR_VERSION% --fast --wait
191
205
- ./utr --suite=playmode {% if category.name == "performance" %} --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 --performance-project-id=InputSystem
192
206
after :
193
207
- {{ instabilities_install_win }}
@@ -206,6 +220,8 @@ run_android_{{ editor.version }}_{{ backend.name }}_{{ category.name }}:
206
220
type : Unity::mobile::shield
207
221
image : package-ci/win10:default
208
222
flavor : b1.medium
223
+ variables :
224
+ EDITOR_VERSION : {{ editor.version }}
209
225
# Skip repository cloning
210
226
skip_checkout : true
211
227
# Set a dependency on the build job
@@ -237,7 +253,7 @@ run_android_{{ editor.version }}_{{ backend.name }}_{{ category.name }}:
237
253
{% endfor %} # editors
238
254
239
255
all_tests :
240
- name : All Tests
256
+ name : All Tests
241
257
dependencies :
242
258
{% for editor in editors %}
243
259
{% for platform in platforms_win %}
0 commit comments