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%
29
+ {% if platform.name == "win" %} --enable-code-coverage --code-coverage-options "generateAdditionalMetrics;generateHtmlReport;assemblyFilters:+Unity.InputSystem"
30
+ --extra-utr-arg="--coverage-results-path={{ yamato_source_dir_win }}/upm-ci~/test-results/CodeCoverage/Package" {% endif %}
27
31
{% if platform.installscript %}
28
32
- {{ unity_downloader_install }}
29
- - {{ platform.installscript }} {{ editor.version }}
33
+ - {{ platform.installscript }} %EDITOR_VERSION%
30
34
{% endif %}
31
35
# ADBv2 on 2019.4 causes the test runner to not start on initial import when the
32
36
# samples are in the package. Move the samples back into the project.
33
37
- move /Y .\Packages\com.unity.inputsystem\Samples .\Assets
34
38
- move /Y .\Packages\com.unity.inputsystem\Samples.meta .\Assets
35
39
# Now run our full test suite that sits in Assets/Tests by running UTR on our project.
36
- - ./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 {% endif %} --api-profile=NET_4_6 {% if platform.runtime %} --platform {{ platform.runtime }} {% endif %} {% if platform.scripting-backend %} --scripting-backend {{ platform.scripting-backend }} {% endif %} --report-performance-data --performance-project-id=InputSystem
40
+ - ./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 {% endif %} --api-profile=NET_4_6 {% if platform.runtime %} --platform {{ platform.runtime }} {% endif %} {% if platform.scripting-backend %} --scripting-backend {{ platform.scripting-backend }} {% endif %} --report-performance-data --performance-project-id=InputSystem {% if platform.name == "win" %}--enable-code-coverage --coverage-options="generateAdditionalMetrics;generateHtmlReport;assemblyFilters:+Unity.InputSystem" --coverage-results-path={{ yamato_source_dir_win }}/upm-ci~/test-results/CodeCoverage/Project {% endif %}
37
41
after :
38
42
- {{ instabilities_install_win }}
39
43
- {{ instabilities_run_win }}
52
56
type : {{ platform.type }}
53
57
image : {{ platform.image }}
54
58
flavor : {{ platform.flavor }}
59
+ variables :
60
+ EDITOR_VERSION : {{ editor.version }}
55
61
commands :
56
62
- {{ utr_install_nix }}
57
63
- {{ upm_ci_install }}
64
70
- mv ./Assets/Samples.meta ./Packages/com.unity.inputsystem
65
71
- upm-ci package pack --package-path ./Packages/com.unity.inputsystem/
66
72
# Run upm-ci verification tests as well as tests contained in the package.
67
- - upm-ci package test --package-path ./Packages/com.unity.inputsystem/ -u {{ editor.version } }
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 % }
68
74
{% if platform.installscript %}
69
75
- {{ unity_downloader_install }}
70
- - {{ platform.installscript }} {{ editor.version }}
76
+ - {{ platform.installscript }} $EDITOR_VERSION
71
77
{% endif %}
72
78
# ADBv2 on 2019.4 causes the test runner to not start on initial import when the
73
79
# samples are in the package. Move the samples back into the project.
74
80
- mv ./Packages/com.unity.inputsystem/Samples ./Assets
75
81
- mv ./Packages/com.unity.inputsystem/Samples.meta ./Assets
76
82
# Now run our full test suite that sits in Assets/Tests by running UTR on our project.
77
- - ./utr --testproject . --timeout=1200 --editor-location=.Editor --artifacts_path=upm-ci~/test-results/isolation-com.unity.inputsystem.tests --suite=playmode {% if platform.name == "mac" %} --suite=editor {% endif %} {% if platform.name == "linux" %} --suite=editor {% endif %} {% if category.name == "performance" %} --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 %} --report-performance-data --performance-project-id=InputSystem
83
+ - ./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 {% endif %} --api-profile=NET_4_6 {% if platform.runtime %} --platform {{ platform.runtime }} {% endif %} {% if platform.scripting-backend %} --scripting-backend {{ platform.scripting-backend }} {% endif %} --report-performance-data --performance-project-id=InputSystem {% if 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 {% endif %}
78
84
after :
79
85
- {{ instabilities_install_nix }}
80
86
- {{ platform.instabilities_run }}
@@ -94,10 +100,12 @@ build_ios_{{ editor.version }}_{{ category.name }}:
94
100
type : Unity::VM::osx
95
101
image : {{ ios_and_tvos_macos_bokken_image }}
96
102
flavor : b1.large
103
+ variables :
104
+ EDITOR_VERSION : {{ editor.version }}
97
105
commands :
98
106
- {{ utr_install_nix }}
99
107
- {{ unity_downloader_install }}
100
- - 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
101
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
102
110
after :
103
111
- {{ instabilities_install_nix }}
@@ -117,6 +125,8 @@ run_ios_{{ editor.version }}_{{ category.name }}:
117
125
image : {{ ios_and_tvos_macos_bokken_image }}
118
126
model : SE
119
127
flavor : b1.medium
128
+ variables :
129
+ EDITOR_VERSION : {{ editor.version }}
120
130
skip_checkout : true
121
131
dependencies :
122
132
- .yamato/upm-ci.yml#build_ios_{{ editor.version }}_{{ category.name }}
@@ -138,10 +148,12 @@ build_tvos_{{ editor.version }}:
138
148
type : Unity::VM::osx
139
149
image : {{ ios_and_tvos_macos_bokken_image }}
140
150
flavor : b1.large
151
+ variables :
152
+ EDITOR_VERSION : {{ editor.version }}
141
153
commands :
142
154
- {{ utr_install_nix }}
143
155
- {{ unity_downloader_install }}
144
- - 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
145
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
146
158
after :
147
159
- {{ instabilities_install_nix }}
@@ -160,6 +172,8 @@ run_tvos_{{ editor.version }}:
160
172
type : Unity::mobile::appletv
161
173
image : {{ ios_and_tvos_macos_bokken_image }}
162
174
flavor : b1.medium
175
+ variables :
176
+ EDITOR_VERSION : {{ editor.version }}
163
177
skip_checkout : true
164
178
dependencies :
165
179
- .yamato/upm-ci.yml#build_tvos_{{ editor.version }}
@@ -182,10 +196,12 @@ build_android_{{ editor.version }}_{{ backend.name }}_{{ category.name }}:
182
196
type : Unity::VM
183
197
image : package-ci/win10:default
184
198
flavor : b1.xlarge
199
+ variables :
200
+ EDITOR_VERSION : {{ editor.version }}
185
201
commands :
186
202
- {{ utr_install_win }}
187
203
- {{ unity_downloader_install }}
188
- - 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
189
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
190
206
after :
191
207
- {{ instabilities_install_win }}
@@ -204,6 +220,8 @@ run_android_{{ editor.version }}_{{ backend.name }}_{{ category.name }}:
204
220
type : Unity::mobile::shield
205
221
image : package-ci/win10:default
206
222
flavor : b1.medium
223
+ variables :
224
+ EDITOR_VERSION : {{ editor.version }}
207
225
# Skip repository cloning
208
226
skip_checkout : true
209
227
# Set a dependency on the build job
@@ -235,7 +253,7 @@ run_android_{{ editor.version }}_{{ backend.name }}_{{ category.name }}:
235
253
{% endfor %} # editors
236
254
237
255
all_tests :
238
- name : All Tests
256
+ name : All Tests
239
257
dependencies :
240
258
{% for editor in editors %}
241
259
{% for platform in platforms_win %}
0 commit comments