Skip to content

Commit 5fb857b

Browse files
committed
Merge pull request #509 from Unity-Technologies/UT-3373-yamato-trigger-unit-tests-on-2020
UT-3373 add separate list of editors to test when publishing vs on a PR (cherry picked from commit 37aecb5)
1 parent d1bcc08 commit 5fb857b

File tree

1 file changed

+24
-8
lines changed

1 file changed

+24
-8
lines changed

.yamato/upm-ci.yml

Lines changed: 24 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
1-
editors:
1+
test_trigger_editors:
2+
- version: 2018.4
3+
- version: 2019.3
4+
publish_trigger_editors:
25
- version: 2018.3
36
- version: 2018.4
47
- version: 2019.1
58
- version: 2019.2
69
- version: 2019.3
10+
- version: 2020.1
711
platforms:
812
- name: win
913
type: Unity::VM
@@ -30,7 +34,7 @@ pack:
3034
- "upm-ci~/**/*"
3135

3236

33-
{% for editor in editors %}
37+
{% for editor in publish_trigger_editors %}
3438
{% for platform in platforms %}
3539
test_{{ platform.name }}_{{ editor.version }}:
3640
name : Test version {{ editor.version }} on {{ platform.name }}
@@ -63,12 +67,27 @@ test_trigger:
6367
- master
6468
dependencies:
6569
- .yamato/upm-ci.yml#pack
66-
{% for editor in editors %}
70+
{% for editor in test_trigger_editors %}
6771
{% for platform in platforms %}
6872
- .yamato/upm-ci.yml#test_{{platform.name}}_{{editor.version}}
6973
{% endfor %}
7074
{% endfor %}
7175

76+
publish_test_trigger:
77+
name: Publish Tests Trigger
78+
triggers:
79+
tags:
80+
only:
81+
- /^(r|R)(c|C)-\d+\.\d+\.\d+(-preview(\.\d+)?)?
82+
dependencies:
83+
- .yamato/upm-ci.yml#pack
84+
{% for editor in publish_trigger_editors %}
85+
{% for platform in platforms %}
86+
- .yamato/upm-ci.yml#test_{{platform.name}}_{{editor.version}}
87+
{% endfor %}
88+
{% endfor %}
89+
90+
7291
publish:
7392
name: Publish to Internal Registry
7493
agent:
@@ -88,8 +107,5 @@ publish:
88107
- "upm-ci~/packages/*.tgz"
89108
dependencies:
90109
- .yamato/upm-ci.yml#pack
91-
{% for editor in editors %}
92-
{% for platform in platforms %}
93-
- .yamato/upm-ci.yml#test_{{ platform.name }}_{{ editor.version }}
94-
{% endfor %}
95-
{% endfor %}
110+
- .yamato/upm-ci.yml#test_trigger
111+
- .yamato/upm-ci.yml#publish_test_trigger

0 commit comments

Comments
 (0)