Skip to content

Commit 49f8b2f

Browse files
committed
chore: Run validation tests on all supported editors and desktop platforms
1 parent 399ab96 commit 49f8b2f

4 files changed

Lines changed: 23 additions & 18 deletions

File tree

.yamato/package-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ test_{{project.name}}_{{ package.name }}_{{ editor }}_{{ platform.name }}:
1717
flavor: {{ platform.flavor}}
1818
commands:
1919
- npm install upm-ci-utils@stable -g --registry https://artifactory.prd.cds.internal.unity3d.com/artifactory/api/npm/upm-npm
20-
- {% if platform.name == "centos" %}DISPLAY=:0 {% endif %}upm-ci project test -u {{ editor }} --type package-tests --project-path {{ project.name }} --package-filter {{ package.name }}
20+
- {% if platform.name == "ubuntu" %}DISPLAY=:0 {% endif %}upm-ci project test -u {{ editor }} --type package-tests --project-path {{ project.name }} --package-filter {{ package.name }}
2121
artifacts:
2222
logs:
2323
paths:

.yamato/project-promotion.yml

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,25 +3,27 @@
33
{% for project in projects -%}
44
{% if project.publish == "true" -%}
55
{% for package in project.packages -%}
6-
# Validation job for package {{ package.name }}, only using the first entry in the
7-
# platform and editor meta data
8-
promotion_validate_{{ project.name }}_{{ package.name }}_{{ test_platforms.first.name }}_{{ validation_editor }}:
9-
name : Validate Project {{ project.name }} - Package {{ package.name }} - {{ validation_editor }} on {{ test_platforms.first.name }}
6+
{% for editor in project.test_editors -%}
7+
{% for platform in test_platforms -%}
8+
promotion_validate_{{ project.name }}_{{ package.name }}_{{ platform.name }}_{{ editor }}:
9+
name : Validate (Vetting Tests) Project {{ project.name }} - Package {{ package.name }} - {{ editor }} on {{ platform.name }}
1010
agent:
11-
type: {{ test_platforms.first.type }}
12-
image: {{ test_platforms.first.image }}
13-
flavor: {{ test_platforms.first.flavor}}
11+
type: {{ platform.type }}
12+
image: {{ platform.image }}
13+
flavor: {{ platform.flavor}}
1414
variables:
1515
UPMCI_PROMOTION: 1
1616
commands:
1717
- npm install upm-ci-utils@stable -g --registry https://artifactory.prd.cds.internal.unity3d.com/artifactory/api/npm/upm-npm
18-
- upm-ci project test -u {{ validation_editor }} --project-path {{ project.path }} --type vetting-tests --project-path {{ project.path }} --package-filter {{ package.name }}
18+
- {% if platform.name == "ubuntu" %}DISPLAY=:0 {% endif %}upm-ci project test -u {{ editor }} --project-path {{ project.path }} --type vetting-tests --project-path {{ project.path }} --package-filter {{ package.name }}
1919
artifacts:
2020
logs:
2121
paths:
2222
- "upm-ci~/test-results/**/*"
2323
dependencies:
2424
- .yamato/project-pack.yml#pack_{{ project.name }}
25+
{% endfor -%}
26+
{% endfor -%}
2527

2628
promote_{{ project.name }}_{{ package.name }}:
2729
name: Promote Project {{ project.name }} - Package {{ package.name }} to Production

.yamato/project-tests.yml

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,31 @@
11
{% metadata_file .yamato/project.metafile %}
22
---
33

4-
# Validation job for package {{ package.name }}, only using the first entry in the
5-
# platform and editor meta data
6-
# Validation only occurs in editmode.
4+
# Validation job for package {{ package.name }}. Validation only occurs in editmode.
75

86
{% for project in projects -%}
97
{% if project.validate == "true" %}
108
{% for package in project.packages -%}
11-
validate_{{ package.name }}_{{ test_platforms.first.name }}_{{ validation_editor }}:
12-
name : Validate Package {{ package.name }} - {{ validation_editor }} on {{ test_platforms.first.name }}
9+
{% for editor in project.test_editors -%}
10+
{% for platform in test_platforms -%}
11+
validate_{{ package.name }}_{{ platform.name }}_{{ editor }}:
12+
name : Validate (Isolation Tests) Package {{ package.name }} - {{ editor }} on {{ platform.name }}
1313
agent:
14-
type: {{ test_platforms.first.type }}
15-
image: {{ test_platforms.first.image }}
16-
flavor: {{ test_platforms.first.flavor}}
14+
type: {{ platform.type }}
15+
image: {{ platform.image }}
16+
flavor: {{ platform.flavor}}
1717
commands:
1818
- npm install upm-ci-utils@stable -g --registry https://artifactory.prd.cds.internal.unity3d.com/artifactory/api/npm/upm-npm
19-
- {% if platform.name == "centos" %}DISPLAY=:0 {% endif %}upm-ci project test -u {{ validation_editor }} --type vetting-tests --project-path {{ project.path }} --package-filter {{ package.name }} --platform editmode
19+
- {% if platform.name == "ubuntu" %}DISPLAY=:0 {% endif %}upm-ci project test -u {{ editor }} --type isolation-tests --project-path {{ project.path }} --package-filter {{ package.name }} --platform editmode
2020
artifacts:
2121
logs:
2222
paths:
2323
- "upm-ci~/test-results/**/*"
2424
dependencies:
2525
- .yamato/project-pack.yml#pack_{{ project.name }}
2626
{% endfor -%}
27+
{% endfor -%}
28+
{% endfor -%}
2729
{% endif -%}
2830
{% endfor -%}
2931

.yamato/project.metafile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ projects:
6262
has_tests: true
6363
test_editors:
6464
- 2021.3
65+
- 2022.2
6566
- trunk
6667

6768
# Scripting backends used by Standalone Playmode Tests

0 commit comments

Comments
 (0)