Skip to content

Commit a47b8da

Browse files
authored
chore: create a trigger job (#407)
* trigger * turn tests trigger into a virtual job
1 parent 1ded2ba commit a47b8da

File tree

1 file changed

+24
-8
lines changed

1 file changed

+24
-8
lines changed

.yamato/UnityToonShader-test.yml

Lines changed: 24 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -133,10 +133,6 @@ win_test_projects:
133133
mkdir -p TestProjects/{{ project_name }}/test-results/
134134
scp -i ~/.ssh/id_rsa_macmini -o "StrictHostKeyChecking=no" -r bokken@$BOKKEN_DEVICE_IP:/Users/bokken/com.unity.toonshader/TestProjects/{{ project_name }}/test-results/ TestProjects/{{ project_name }}/test-results/
135135
exit $UTR_RESULT
136-
triggers:
137-
branches:
138-
only:
139-
- "/.*/"
140136
artifacts:
141137
logs:
142138
paths:
@@ -170,13 +166,33 @@ win_test_projects:
170166
- cd TestProjects/{{ project_name }} && utr --suite=playmode --testproject=. --editor-location=.Editor --artifacts_path=test-results {{ test_project.utr_arguments }}
171167
timeout: 360000
172168
retries: 1
173-
triggers:
174-
branches:
175-
only:
176-
- "/.*/"
177169
artifacts:
178170
logs:
179171
paths:
180172
- "**/test-results/**"
181173
{% endfor %}
182174
{% endfor %}
175+
176+
test_trigger:
177+
name: Tests Trigger (Virtual) for {{ yamato_name }}
178+
triggers:
179+
expression: |
180+
NOT push.branch eq "development/v1"
181+
recurring:
182+
- branch: dev
183+
frequency: daily
184+
rerun: on_new_revision
185+
186+
dependencies:
187+
{% for test_project in osx_test_projects %}
188+
{% for unity_editor in test_project.unity_editors %}
189+
{% assign project_name = test_project.project_prefix | append: '-' | concat: unity_editor.version %}
190+
- .yamato/{{ yamato_name }}-test.yml#{{ project_name }}_OSX_Metal_playmode_mono_Linear
191+
{% endfor %}
192+
{% endfor %}
193+
{% for test_project in win_test_projects %}
194+
{% for unity_editor in test_project.unity_editors %}
195+
{% assign project_name = test_project.project_prefix | append: '-' | concat: unity_editor.version %}
196+
- .yamato/{{ yamato_name }}-test.yml#{{ project_name }}{{ test_project.key_postfix}}_Win_playmode
197+
{% endfor %}
198+
{% endfor %}

0 commit comments

Comments
 (0)