Skip to content

Commit 430d291

Browse files
committed
Added runAll checks
1 parent 4aaddd3 commit 430d291

File tree

3 files changed

+154
-122
lines changed

3 files changed

+154
-122
lines changed

.yamato/_run-all.yml

Lines changed: 148 additions & 122 deletions
Original file line numberDiff line numberDiff line change
@@ -1,148 +1,174 @@
11
{% metadata_file .yamato/project.metafile %}
22
---
3-
run_all_tests:
4-
name: Run All Package and Project Tests
5-
dependencies:
6-
# Pull in package and validate jobs through the badges job
7-
- .yamato/_triggers.yml#badges_test_trigger
8-
- .yamato/mobile-build-and-test.yml#run_{{ projects.first.name }}_tests_{{ mobile_validation_editor }}_iOS
9-
- .yamato/mobile-build-and-test.yml#run_{{ projects.first.name }}_tests_{{ mobile_validation_editor }}_android
10-
# - .yamato/_run-all.yml#all_project_tests_standalone
11-
{% for project in projects -%}
12-
{% if project.name == "testproject" -%}
13-
{% for editor in project.test_editors -%}
14-
- .yamato/webgl-build.yml#build_{{ project.name }}_tests_{{ editor }}_webgl
15-
{% endfor -%}
16-
{% endif -%}
17-
{% endfor -%}
18-
19-
{% for platform in test_platforms -%}
20-
{% for project in projects -%}
21-
{% for editor in project.test_editors -%}
22-
{% if editor != "trunk" -%}
23-
{% for package in project.packages -%}
24-
- .yamato/package-tests.yml#test_{{ project.name}}_{{ package.name }}_{{ editor }}_{{ platform.name }}
25-
{% endfor -%}
26-
- .yamato/project-tests.yml#test_{{ project.name }}_{{ editor }}_{{ platform.name }}
27-
{% endif -%}
28-
{% endfor -%}
29-
30-
## Test minimal project with different versions of dependencies
31-
{% if project.name == "minimalproject" -%}
32-
{% for dependency in dependencies -%}
33-
{% for depeditor in dependency.test_editors -%}
34-
{% if depeditor != "trunk" -%}
35-
- .yamato/package-tests.yml#test_compatibility_{{ project.name }}_{{ project.packages.first.name }}_with_{{ dependency.name }}@{{ dependency.version }}_{{ depeditor }}_{{ platform.name }}
36-
{% endif -%}
37-
{% endfor -%}
38-
{% endfor -%}
39-
{% endif -%}
40-
{% endfor -%}
41-
{% endfor -%}
423

43-
run_all_tests_trunk:
44-
name: Run All Package and Project Tests [Trunk]
4+
# Runs all package tests
5+
run_all_package_tests:
6+
name: Run All Package Tests
457
dependencies:
46-
{% for platform in test_platforms -%}
47-
{% for project in projects -%}
48-
{% for editor in project.test_editors -%}
49-
{% if editor == "trunk" -%}
50-
{% for package in project.packages -%}
51-
- .yamato/package-tests.yml#test_{{ project.name}}_{{ package.name }}_{{ editor }}_{{ platform.name }}
8+
{% for platform in test_platforms.desktop -%}
9+
{% for editor in validation_editors.all -%}
10+
- .yamato/package-tests.yml#package_test_-_ngo_{{ editor }}_{{ platform.name }}
5211
{% endfor -%}
53-
- .yamato/project-tests.yml#test_{{ project.name }}_{{ editor }}_{{ platform.name }}
54-
{% endif -%}
5512
{% endfor -%}
5613

57-
## Test minimal project with different versions of dependencies on trunk
58-
{% if project.name == "minimalproject" -%}
59-
{% for dependency in dependencies -%}
60-
{% for depeditor in dependency.test_editors -%}
61-
{% if depeditor == "trunk" -%}
62-
- .yamato/package-tests.yml#test_compatibility_{{ project.name }}_{{ project.packages.first.name }}_with_{{ dependency.name }}@{{ dependency.version }}_{{ depeditor }}_{{ platform.name }}
63-
{% endif -%}
64-
{% endfor -%}
65-
{% endfor -%}
66-
{% endif -%}
67-
{% endfor -%}
68-
{% endfor -%}
6914

70-
all_project_tests:
15+
# Runs all projects tests
16+
run_all_project_tests:
7117
name: Run All Project Tests
7218
dependencies:
73-
- .yamato/_triggers.yml#badges_test_trigger
74-
{% for platform in test_platforms -%}
75-
{% for project in projects -%}
76-
{% for editor in project.test_editors -%}
77-
- .yamato/project-tests.yml#test_{{ projects.first.name }}_{{ editor }}_{{ platform.name }}
19+
{% for project in projects.all -%}
20+
{% if project.has_tests == "true" -%}
21+
{% for platform in test_platforms.desktop -%}
22+
{% for editor in validation_editors.all -%}
23+
- .yamato/project-tests.yml#test_{{ project.name }}_{{ platform.name }}_{{ editor }}
7824
{% endfor -%}
7925
{% endfor -%}
26+
{% endif -%}
8027
{% endfor -%}
8128

82-
all_package_tests:
83-
name: Run All Package Tests
84-
dependencies:
85-
- .yamato/_triggers.yml#badges_test_trigger
86-
{% for platform in test_platforms -%}
87-
{% for project in projects -%}
88-
{% for editor in project.test_editors -%}
89-
{% for package in project.packages -%}
90-
- .yamato/package-tests.yml#test_{{ project.name}}_{{ package.name }}_{{ editor }}_{{ platform.name }}
91-
{% endfor -%}
92-
{% endfor -%}
93-
{% endfor -%}
94-
{% endfor -%}
9529

96-
# Test minimal project with different versions of dependencies
97-
all_compatibility_tests:
98-
name: Run All Compatibility Tests
30+
# Runs all project standards check
31+
run_all_projects_standards:
32+
name: Run All Projects Standards
9933
dependencies:
100-
{% for platform in test_platforms -%}
101-
{% for project in projects -%}
102-
{% if project.name == "minimalproject" -%}
103-
{% for dependency in dependencies -%}
104-
{% for editor in dependency.test_editors -%}
105-
- .yamato/package-tests.yml#test_compatibility_{{ project.name }}_{{ project.packages.first.name }}_with_{{ dependency.name }}@{{ dependency.version }}_{{ editor }}_{{ platform.name }}
34+
{% for platform in test_platforms.default -%}
35+
{% for project in projects.all -%}
36+
{% for editor in validation_editors.default -%}
37+
- .yamato/project-standards.yml#standards_{{ platform.name }}_{{ project.name }}_{{ editor }}
10638
{% endfor -%}
10739
{% endfor -%}
108-
{% endif -%}
109-
{% endfor -%}
11040
{% endfor -%}
11141

112-
all_project_tests_standalone:
113-
name: Run All Project Tests - Standalone
42+
run_all_webgl_builds:
43+
name: Run All WebGl Build
11444
dependencies:
115-
{% for platform in test_platforms -%}
116-
{% for project in projects -%}
117-
{% if project.has_tests == "true" -%}
118-
{% for editor in project.test_editors -%}
119-
{% for backend in scripting_backends -%}
120-
- .yamato/standalone-project-tests.yml#standalone_tests_{{ project.name }}_{{ backend }}_{{ editor }}_{{ platform.name }}
45+
{% for project in projects.default -%}
46+
{% for platform in test_platforms.desktop -%}
47+
{% for editor in validation_editors.all -%}
48+
- .yamato/webgl-build.yml#webgl_build_{{ project.name }}_{{ platform }}_{{ editor }}
12149
{% endfor -%}
12250
{% endfor -%}
123-
{% endif -%}
124-
{% endfor -%}
12551
{% endfor -%}
12652

127-
all_project_tests_mobile:
128-
name: Run All Project Tests - Mobile
129-
dependencies:
130-
{% for project in projects -%}
131-
{% if project.name == "testproject" -%}
132-
{% for editor in project.test_editors -%}
133-
- .yamato/mobile-build-and-test.yml#run_{{ project.name }}_tests_{{ editor }}_android
134-
- .yamato/mobile-build-and-test.yml#run_{{ project.name }}_tests_{{ editor }}_iOS
135-
{% endfor -%}
136-
{% endif -%}
137-
{% endfor -%}
13853

139-
all_project_tests_webgl:
140-
name: Build All Project Tests - WebGL
141-
dependencies:
142-
{% for project in projects -%}
143-
{% if project.name == "testproject" -%}
144-
{% for editor in project.test_editors -%}
145-
- .yamato/webgl-build.yml#build_{{ project.name }}_tests_{{ editor }}_webgl
146-
{% endfor -%}
147-
{% endif -%}
148-
{% endfor -%}
54+
55+
56+
57+
58+
59+
60+
61+
62+
#run_all_tests:
63+
# name: Run All Package and Project Tests
64+
# dependencies:
65+
# # Pull in package and validate jobs through the badges job
66+
# - .yamato/_triggers.yml#badges_test_trigger
67+
# - .yamato/mobile-build-and-test.yml#run_{{ projects.first.name }}_tests_{{ mobile_validation_editor }}_iOS
68+
# - .yamato/mobile-build-and-test.yml#run_{{ projects.first.name }}_tests_{{ mobile_validation_editor }}_android
69+
# # - .yamato/_run-all.yml#all_project_tests_standalone
70+
#{% for project in projects -%}
71+
#{% if project.name == "testproject" -%}
72+
#{% for editor in project.test_editors -%}
73+
# - .yamato/webgl-build.yml#build_{{ project.name }}_tests_{{ editor }}_webgl
74+
#{% endfor -%}
75+
#{% endif -%}
76+
#{% endfor -%}
77+
#
78+
#{% for platform in test_platforms -%}
79+
#{% for project in projects -%}
80+
#{% for editor in project.test_editors -%}
81+
#{% if editor != "trunk" -%}
82+
#{% for package in project.packages -%}
83+
# - .yamato/package-tests.yml#test_{{ project.name}}_{{ package.name }}_{{ editor }}_{{ platform.name }}
84+
#{% endfor -%}
85+
# - .yamato/project-tests.yml#test_{{ project.name }}_{{ editor }}_{{ platform.name }}
86+
#{% endif -%}
87+
#{% endfor -%}
88+
#
89+
### Test minimal project with different versions of dependencies
90+
#{% if project.name == "minimalproject" -%}
91+
#{% for dependency in dependencies -%}
92+
#{% for depeditor in dependency.test_editors -%}
93+
#{% if depeditor != "trunk" -%}
94+
# - .yamato/package-tests.yml#test_compatibility_{{ project.name }}_{{ project.packages.first.name }}_with_{{ dependency.name }}@{{ dependency.version }}_{{ depeditor }}_{{ platform.name }}
95+
#{% endif -%}
96+
#{% endfor -%}
97+
#{% endfor -%}
98+
#{% endif -%}
99+
#{% endfor -%}
100+
#{% endfor -%}
101+
#
102+
#run_all_tests_trunk:
103+
# name: Run All Package and Project Tests [Trunk]
104+
# dependencies:
105+
#{% for platform in test_platforms -%}
106+
#{% for project in projects -%}
107+
#{% for editor in project.test_editors -%}
108+
#{% if editor == "trunk" -%}
109+
#{% for package in project.packages -%}
110+
# - .yamato/package-tests.yml#test_{{ project.name}}_{{ package.name }}_{{ editor }}_{{ platform.name }}
111+
#{% endfor -%}
112+
# - .yamato/project-tests.yml#test_{{ project.name }}_{{ editor }}_{{ platform.name }}
113+
#{% endif -%}
114+
#{% endfor -%}
115+
#
116+
### Test minimal project with different versions of dependencies on trunk
117+
#{% if project.name == "minimalproject" -%}
118+
#{% for dependency in dependencies -%}
119+
#{% for depeditor in dependency.test_editors -%}
120+
#{% if depeditor == "trunk" -%}
121+
# - .yamato/package-tests.yml#test_compatibility_{{ project.name }}_{{ project.packages.first.name }}_with_{{ dependency.name }}@{{ dependency.version }}_{{ depeditor }}_{{ platform.name }}
122+
#{% endif -%}
123+
#{% endfor -%}
124+
#{% endfor -%}
125+
#{% endif -%}
126+
#{% endfor -%}
127+
#{% endfor -%}
128+
#
129+
130+
#
131+
## Test minimal project with different versions of dependencies
132+
#all_compatibility_tests:
133+
# name: Run All Compatibility Tests
134+
# dependencies:
135+
#{% for platform in test_platforms -%}
136+
#{% for project in projects -%}
137+
#{% if project.name == "minimalproject" -%}
138+
#{% for dependency in dependencies -%}
139+
#{% for editor in dependency.test_editors -%}
140+
# - .yamato/package-tests.yml#test_compatibility_{{ project.name }}_{{ project.packages.first.name }}_with_{{ dependency.name }}@{{ dependency.version }}_{{ editor }}_{{ platform.name }}
141+
#{% endfor -%}
142+
#{% endfor -%}
143+
#{% endif -%}
144+
#{% endfor -%}
145+
#{% endfor -%}
146+
#
147+
#all_project_tests_desktop_standalone:
148+
# name: Run All Project Tests - Desktop Standalone
149+
# dependencies:
150+
#{% for platform in test_platforms -%}
151+
#{% for project in projects -%}
152+
#{% if project.has_tests == "true" -%}
153+
#{% for editor in project.test_editors -%}
154+
#{% for backend in scripting_backends -%}
155+
# - .yamato/standalone-project-tests.yml#standalone_tests_{{ project.name }}_{{ backend }}_{{ editor }}_{{ platform.name }}
156+
#{% endfor -%}
157+
#{% endfor -%}
158+
#{% endif -%}
159+
#{% endfor -%}
160+
#{% endfor -%}
161+
#
162+
#all_project_tests_mobile:
163+
# name: Run All Project Tests - Mobile
164+
# dependencies:
165+
#{% for project in projects -%}
166+
#{% if project.name == "testproject" -%}
167+
#{% for editor in project.test_editors -%}
168+
# - .yamato/mobile-build-and-test.yml#run_{{ project.name }}_tests_{{ editor }}_android
169+
# - .yamato/mobile-build-and-test.yml#run_{{ project.name }}_tests_{{ editor }}_iOS
170+
#{% endfor -%}
171+
#{% endif -%}
172+
#{% endfor -%}
173+
#
174+

.yamato/project-tests.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ test_{{ project.name }}_{{ platform.name }}_{{ editor }}:
1313
type: {{ platform.type }}
1414
image: {{ platform.image }}
1515
flavor: {{ platform.flavor }}
16+
{% if platform.model %}
17+
model: {{ platform.model }}
18+
{% endif %}
1619
commands:
1720
- npm install upm-ci-utils@stable -g --registry https://artifactory.prd.cds.internal.unity3d.com/artifactory/api/npm/upm-npm
1821
- {% if platform.name == "Ubuntu" %}DISPLAY=:0 && {% endif %}upm-ci project test -u {{ editor }} --project-path {{ project.path }} --type project-tests

.yamato/webgl-build.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ webgl_build_{{ project.name }}_{{ platform }}_{{ editor }}:
1515
type: {{ platform.type }}
1616
image: {{ platform.image }}
1717
flavor: {{ platform.flavor }}
18+
{% if platform.model %}
19+
model: {{ platform.model }}
20+
{% endif %}
1821
commands:
1922
# Installing tools
2023
- pip install unity-downloader-cli --index-url https://artifactory.prd.it.unity3d.com/artifactory/api/pypi/pypi/simple

0 commit comments

Comments
 (0)