11{% metadata_file .yamato/project.metafile %}
22---
33
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
74{% for project in projects -%}
5+ {% if project.has_tests == "true" -%}
86{% for editor in project.test_editors -%}
97{% 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 }}]
1211 agent :
1312 type : {{ platform.type }}{% if platform.name == "ubuntu" %}::GPU{% endif %}
1413{% 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 % }
1615 flavor : {{ platform.flavor}}
1716 commands :
1817 - npm install upm-ci-utils@stable -g --registry https://artifactory.prd.cds.internal.unity3d.com/artifactory/api/npm/upm-npm
1918 - pip install unity-downloader-cli --index-url https://artifactory.prd.it.unity3d.com/artifactory/api/pypi/pypi/simple
2019 - 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
2425 - |
2526 {% 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
2828 artifacts :
2929 logs :
3030 paths :
@@ -36,5 +36,5 @@ standalone_test_{{ project.name }}_{{ editor }}_{{ platform.name }}:
3636{% endfor -%}
3737{% endfor -%}
3838{% endfor -%}
39-
40-
39+ {% endif -%}
40+ {% endfor -%}
0 commit comments