|
5 | 5 | {% for editor in validation_editors.all-%} |
6 | 6 | {% for platform in test_platforms.desktop -%} |
7 | 7 | {% for backend in scripting_backends -%} |
8 | | - |
9 | | -{%- set is_ubuntu = platform.name == "ubuntu" -%} |
10 | | -{%- set is_windows = platform.name == "win" -%} |
11 | | -{%- set is_il2cpp = backend == "il2cpp" -%} |
12 | | - |
13 | 8 | desktop_standalone_tests_{{ project.name }}_{{ platform.name }}_{{ backend }}_{{ editor }}: |
14 | 9 | name : Standalone Tests - NGO {{ project.name }} - [{{ platform.name }}, {{ backend }}, {{ editor }}] |
15 | 10 | agent: |
16 | | - type: {{ platform.type }}{{ "::GPU" if is_ubuntu }} |
17 | | - model: {{ "rtx2080" if is_ubuntu }} |
18 | | - image: {{ win_il2cpp_test_image if is_windows and is_il2cpp else platform.image }} |
| 11 | + type: {{ platform.type }}{% if platform.name == "ubuntu" %}::GPU{% endif %} |
| 12 | +{% if platform.name == "ubuntu" %} |
| 13 | + model: rtx2080 |
| 14 | +{% endif %} |
| 15 | + image: {% if platform.name == 'win' and backend == 'il2cpp' %}{{ win_il2cpp_test_image }} {% else %} {{ platform.image }} {% endif %} |
19 | 16 | flavor: {{ platform.flavor }} |
20 | 17 | commands: |
21 | 18 | - npm install -g upm-ci-utils@stable --registry https://artifactory.prd.cds.internal.unity3d.com/artifactory/api/npm/upm-npm |
22 | | - - unity-downloader-cli -u {{ editor }} -c Editor {{ "-c il2cpp" if is_il2cpp }} --fast --wait |
| 19 | +{% if platform.name != "win" %} |
| 20 | + - chmod +x ./utr |
| 21 | +{% endif %} |
| 22 | + - unity-downloader-cli -u {{ editor }} -c Editor {% if backend == "il2cpp" %} -c il2cpp {% endif %} --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={{ backend }} --build-only --testfilter=Unity.Netcode.RuntimeTests --extra-editor-arg=-batchmode --extra-editor-arg=-nographics |
23 | 24 | - | |
24 | | - {% set utr_prefix = "./" if not is_windows %} |
25 | | - {{ utr_prefix }}utr --suite=playmode \ |
26 | | - --platform={{ platform.standalone }} \ |
27 | | - --editor-location=.Editor \ |
28 | | - --testproject={{ project }} \ |
29 | | - --player-save-path=build/players \ |
30 | | - --artifacts_path=build/logs \ |
31 | | - --scripting-backend={{ backend }} \ |
32 | | - --build-only \ |
33 | | - --testfilter=Unity.Netcode.RuntimeTests \ |
34 | | - --extra-editor-arg=-batchmode \ |
35 | | - --extra-editor-arg=-nographics |
36 | | - - | |
37 | | - {{ "set" if is_windows else "export" }} UTR_VERSION=1.35.1 |
38 | | - {{ utr_prefix }}utr --suite=playmode \ |
39 | | - --platform={{ platform.standalone }} \ |
40 | | - --player-load-path=build/players \ |
41 | | - --artifacts_path=build/test-results \ |
42 | | - --scripting-backend={{ backend }} \ |
43 | | - --testfilter=Unity.Netcode.RuntimeTests \ |
44 | | - --playergraphicsapi=Null |
| 25 | + {% if platform.name == "win" %}set{% endif %}{% if platform.name != "win" %}export{% endif %} UTR_VERSION=1.35.1 |
| 26 | + {% 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 |
45 | 27 | artifacts: |
46 | 28 | logs: |
47 | 29 | paths: |
|
0 commit comments