1
1
{% metadata_file .yamato/project.metafile %}
2
2
---
3
3
4
- # For every platform and editor version, run its project tests without
5
- # running package tests too since they are handled on their respective
6
- # jobs
7
4
{% for project in projects -%}
5
+ {% if project.has_tests == "true" -%}
8
6
{% for editor in project.test_editors -%}
9
7
{% for platform in test_platforms -%}
10
- standalone_test_{{ project.name }}_{{ editor }}_{{ platform.name }} :
11
- name : standalone {{ project.name }} tests - {{ editor }} on {{ platform.name }}
8
+ {% for backend in scripting_backends -%}
9
+ standalone_tests_{{ project.name }}_{{ backend }}_{{ editor }}_{{ platform.name }} :
10
+ name : Standalone Tests - {{ project.name }} - [{{ backend }}, {{ platform.name }}, {{ editor }}]
12
11
agent :
13
12
type : {{ platform.type }}{% if platform.name == "ubuntu" %}::GPU{% endif %}
14
13
{% if platform.name == "ubuntu" %} model: rtx2080{% endif %}
15
- image : {{ platform.image }}
14
+ image : {% if platform.name == 'win' and backend == 'il2cpp' %}{{ win_il2cpp_test_image }} {% else %} {{ platform.image }} {% endif % }
16
15
flavor : {{ platform.flavor}}
17
16
commands :
18
17
- npm install upm-ci-utils@stable -g --registry https://artifactory.prd.cds.internal.unity3d.com/artifactory/api/npm/upm-npm
19
18
- pip install unity-downloader-cli --index-url https://artifactory.prd.it.unity3d.com/artifactory/api/pypi/pypi/simple
20
19
- curl -s https://artifactory.prd.it.unity3d.com/artifactory/unity-tools-local/utr-standalone/utr{% if platform.name == "win" %}.bat{% endif %} --output utr{% if platform.name == "win" %}.bat{% endif %}
21
- {% if platform.name != "win" %} - chmod +x ./utr{% endif %}
22
- - unity-downloader-cli -u {{editor}} -c Editor --fast --wait
23
- - {% if platform.name != "win" %}./{% endif %}utr --suite=playmode --platform={{platform.standalone}} --editor-location=.Editor --testproject=testproject --player-save-path=build/players --artifacts_path=build/logs --scripting-backend=mono --build-only --testfilter=Unity.Netcode.RuntimeTests --extra-editor-arg=-batchmode --extra-editor-arg=-nographics
20
+ {% if platform.name != "win" %}
21
+ - chmod +x ./utr
22
+ {% endif %}
23
+ - unity-downloader-cli -u {{ editor }} -c Editor {% if backend == "il2cpp" %} -c il2cpp{% endif %} --fast --wait
24
+ - {% if platform.name != "win" %}./{% endif %}utr --suite=playmode --platform={{ platform.standalone }} --editor-location=.Editor --testproject=testproject --player-save-path=build/players --artifacts_path=build/logs --scripting-backend={{ backend }} --build-only --testfilter=Unity.Netcode.RuntimeTests --extra-editor-arg=-batchmode --extra-editor-arg=-nographics
24
25
- |
25
26
{% if platform.name == "win" %}set{% endif %}{% if platform.name != "win" %}export{% endif %} UTR_VERSION=0.12.0
26
- {% if platform.name != "win" %}./{% endif %}utr --suite=playmode --platform={{platform.standalone}} --player-load-path=build/players --artifacts_path=build/test-results --testfilter=Unity.Netcode.RuntimeTests --playergraphicsapi=Null
27
- - echo {{ platform.name }}
27
+ {% if platform.name != "win" %}./{% endif %}utr --suite=playmode --platform={{ platform.standalone }} --player-load-path=build/players --artifacts_path=build/test-results --scripting-backend={{ backend }} --testfilter=Unity.Netcode.RuntimeTests --playergraphicsapi=Null
28
28
artifacts :
29
29
logs :
30
30
paths :
@@ -36,5 +36,5 @@ standalone_test_{{ project.name }}_{{ editor }}_{{ platform.name }}:
36
36
{% endfor -%}
37
37
{% endfor -%}
38
38
{% endfor -%}
39
-
40
-
39
+ {% endif -%}
40
+ {% endfor -%}
0 commit comments