Skip to content

Commit b118766

Browse files
committed
add editor test version
1 parent 056fe5e commit b118766

1 file changed

Lines changed: 35 additions & 5 deletions

File tree

.yamato/test.yml

Lines changed: 35 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
1-
test_editors:
1+
blocking_test_editors:
22
- version: 2019.1.14f1
3+
nonblocking_test_editors:
4+
- version: 2019.3.0f6
5+
- version: 2019.4
6+
- version: 2020.1
7+
- version: 2020.2
38
test_platforms:
49
- name: win
510
type: Unity::VM
@@ -11,7 +16,7 @@ test_platforms:
1116
flavor: m1.mac
1217
---
1318

14-
{% for editor in test_editors %}
19+
{% for editor in blocking_test_editors %}
1520
{% for platform in test_platforms %}
1621
test_{{ platform.name }}_{{ editor.version }}:
1722
name : Test {{ editor.version }} on {{ platform.name }}
@@ -21,7 +26,27 @@ test_{{ platform.name }}_{{ editor.version }}:
2126
flavor: {{ platform.flavor}}
2227
commands:
2328
- npm install upm-ci-utils@stable -g --registry https://artifactory.prd.cds.internal.unity3d.com/artifactory/api/npm/upm-npm
24-
- {% if platform.name == "centos" %}DISPLAY=:0 {% endif %}upm-ci package test -u {{ editor.version }} --package-path . --type package-tests
29+
- {% if platform.name == "centos" %}DISPLAY=:0 {% endif %}upm-ci package test -u {{ editor.version }} --package-path . --type package-tests --enable-code-coverage
30+
artifacts:
31+
logs:
32+
paths:
33+
- "upm-ci~/test-results/**/*"
34+
dependencies:
35+
- .yamato/pack.yml#pack
36+
{% endfor %}
37+
{% endfor %}
38+
39+
{% for editor in nonblocking_test_editors %}
40+
{% for platform in test_platforms %}
41+
test_{{ platform.name }}_{{ editor.version }}:
42+
name : Test {{ editor.version }} on {{ platform.name }}
43+
agent:
44+
type: {{ platform.type }}
45+
image: {{ platform.image }}
46+
flavor: {{ platform.flavor}}
47+
commands:
48+
- npm install upm-ci-utils@stable -g --registry https://artifactory.prd.cds.internal.unity3d.com/artifactory/api/npm/upm-npm
49+
- {% if platform.name == "centos" %}DISPLAY=:0 {% endif %}upm-ci package test -u {{ editor.version }} --package-path . --type package-tests --enable-code-coverage
2550
artifacts:
2651
logs:
2752
paths:
@@ -33,7 +58,7 @@ test_{{ platform.name }}_{{ editor.version }}:
3358

3459
# Validate the package on each editor version and each platform
3560
# Validation only occurs in editmode.
36-
{% for editor in test_editors %}
61+
{% for editor in blocking_test_editors %}
3762
{% for platform in test_platforms %}
3863
validate_{{ platform.name }}_{{ editor.version }}:
3964
name : Validate {{ editor.version }} on {{ platform.name }}
@@ -65,9 +90,14 @@ test_trigger:
6590
- "/.*/"
6691
dependencies:
6792
- .yamato/pack.yml#pack
68-
{% for editor in test_editors %}
93+
{% for editor in blocking_test_editors %}
6994
{% for platform in test_platforms %}
7095
- .yamato/test.yml#test_{{platform.name}}_{{editor.version}}
7196
- .yamato/test.yml#validate_{{platform.name}}_{{editor.version}}
7297
{% endfor %}
7398
{% endfor %}
99+
{% for editor in nonblocking_test_editors %}
100+
{% for platform in test_platforms %}
101+
- .yamato/test.yml#test_{{platform.name}}_{{editor.version}}
102+
{% endfor %}
103+
{% endfor %}

0 commit comments

Comments
 (0)