|
7 | 7 | # Builds are made on each supported editor as in project.metafile declaration |
8 | 8 | # Builds are made with different scripting backends as in project.metafile declaration |
9 | 9 | # ARM64 architectures are for now not considered since Windows_arm64 is recommended to use only after builds (would require separation here) and when it comes to macOS_arm64 there is problem with OpenCL not being available |
| 10 | + |
| 11 | +# Build phase |
10 | 12 | {% for project in projects.default -%} |
11 | 13 | {% for platform in test_platforms.desktop -%} |
12 | 14 | {% for editor in validation_editors.all -%} |
13 | 15 | {% for backend in scripting_backends -%} |
14 | | -desktop_standalone_tests_{{ project.name }}_{{ platform.name }}_{{ backend }}_{{ editor }}: |
15 | | - name : Standalone Tests - NGO {{ project.name }} - [{{ platform.name }}, {{ editor }}, {{ backend }}] |
| 16 | +desktop_standalone_build_{{ project.name }}_{{ platform.name }}_{{ backend }}_{{ editor }}: |
| 17 | + name : Standalone Build - NGO {{ project.name }} - [{{ platform.name }}, {{ editor }}, {{ backend }}] |
16 | 18 | agent: |
17 | 19 | type: {% if platform.name == "mac" %} {{ platform.type }} {% else %} {{ platform.type }}::GPU {% endif %} |
18 | 20 | image: {{ platform.image }} |
19 | 21 | flavor: {{ platform.flavor }} |
20 | 22 | commands: |
21 | | - # Installing tools |
| 23 | +# Installing tools |
22 | 24 | {% if platform.name == "ubuntu" %} |
23 | 25 | - sudo apt-get update -q |
24 | 26 | - sudo apt install -qy imagemagick |
25 | 27 | {% endif %} |
26 | 28 | - pip install unity-downloader-cli --index-url https://artifactory.prd.it.unity3d.com/artifactory/api/pypi/pypi/simple |
27 | 29 |
|
28 | | - # Platform specific UTR setup |
| 30 | +# Platform specific UTR setup |
29 | 31 | - | |
30 | 32 | {% if platform.name == "win" %} |
31 | 33 | curl -s https://artifactory.prd.it.unity3d.com/artifactory/unity-tools-local/utr-standalone/utr.bat --output utr.bat |
32 | 34 | {% else %} |
33 | 35 | curl -s https://artifactory.prd.it.unity3d.com/artifactory/unity-tools-local/utr-standalone/utr --output utr && chmod +x utr |
34 | 36 | {% endif %} |
35 | | - |
36 | | - # Installing editor |
| 37 | + |
| 38 | + # Installing editor |
37 | 39 | - unity-downloader-cli -u {{ editor }} -c Editor {% if backend == "il2cpp" %} -c il2cpp {% endif %} --fast --wait |
38 | | - |
39 | | - # Build Player |
| 40 | + |
| 41 | + # Build Player |
40 | 42 | - | |
41 | | -{% if platform.name == "win" %} |
42 | | - utr.bat --suite=playmode --platform={{ platform.standalone }} --editor-location=.Editor --testproject={{ project.path }} --scripting-backend={{ backend }} --player-save-path=build/players --artifacts_path=build/logs --extra-editor-arg=-batchmode --extra-editor-arg=-nographics --reruncount=1 --clean-library-on-rerun |
43 | | -{% else %} |
44 | | - ./utr --suite=playmode --platform={{ platform.standalone }} --editor-location=.Editor --testproject={{ project.path }} --scripting-backend={{ backend }} --player-save-path=build/players --artifacts_path=build/logs --extra-editor-arg=-batchmode --extra-editor-arg=-nographics --reruncount=1 --clean-library-on-rerun |
45 | | -{% endif %} |
| 43 | +{% if platform.name == "win" %} |
| 44 | + utr.bat --suite=playmode --platform={{ platform.standalone }} --editor-location=.Editor --testproject={{ project.path }} --scripting-backend={{ backend }} --player-save-path=build/players --artifacts_path=build/logs --extra-editor-arg=-batchmode --extra-editor-arg=-nographics --reruncount=1 --clean-library-on-rerun --build-only |
| 45 | +{% else %} |
| 46 | + ./utr --suite=playmode --platform={{ platform.standalone }} --editor-location=.Editor --testproject={{ project.path }} --scripting-backend={{ backend }} --player-save-path=build/players --artifacts_path=build/logs --extra-editor-arg=-batchmode --extra-editor-arg=-nographics --reruncount=1 --clean-library-on-rerun --build-only |
| 47 | +{% endif %} |
46 | 48 |
|
47 | | - # Run Standalone tests |
| 49 | +artifacts: |
| 50 | + players: |
| 51 | + paths: |
| 52 | + - build/players/**/* |
| 53 | + logs: |
| 54 | + paths: |
| 55 | + - build/logs/**/* |
| 56 | +dependencies: |
| 57 | + - .yamato/project-pack.yml#project_pack_-_{{ project.name }} |
| 58 | +{% endfor -%} |
| 59 | +{% endfor -%} |
| 60 | +{% endfor -%} |
| 61 | +{% endfor -%} |
| 62 | + |
| 63 | + |
| 64 | + |
| 65 | + |
| 66 | +# Run phase |
| 67 | +{% for project in projects.default -%} |
| 68 | +{% for platform in test_platforms.desktop -%} |
| 69 | +{% for editor in validation_editors.all -%} |
| 70 | +{% for backend in scripting_backends -%} |
| 71 | +desktop_standalone_test_{{ project.name }}_{{ platform.name }}_{{ backend }}_{{ editor }}: |
| 72 | + name : Standalone Test - NGO {{ project.name }} - [{{ platform.name }}, {{ editor }}, {{ backend }}] |
| 73 | + agent: |
| 74 | + type: {% if platform.name == "mac" %} {{ platform.type }} {% else %} {{ platform.type }}::GPU {% endif %} |
| 75 | + image: {{ platform.image }} |
| 76 | + flavor: {{ platform.flavor }} |
| 77 | + commands: |
| 78 | +# Platform specific UTR setup |
| 79 | + - | |
| 80 | +{% if platform.name == "win" %} |
| 81 | + curl -s https://artifactory.prd.it.unity3d.com/artifactory/unity-tools-local/utr-standalone/utr.bat --output utr.bat |
| 82 | +{% else %} |
| 83 | + curl -s https://artifactory.prd.it.unity3d.com/artifactory/unity-tools-local/utr-standalone/utr --output utr && chmod +x utr |
| 84 | +{% endif %} |
| 85 | + |
| 86 | +# Run Standalone tests |
48 | 87 | - | |
49 | | -{% if platform.name == "win" %} |
| 88 | +{% if platform.name == "win" %} |
50 | 89 | utr.bat --suite=playmode --player-load-path=build/players --artifacts_path=build/test-results --testfilter=Unity.Netcode.RuntimeTests --playergraphicsapi=Null --reruncount=1 --clean-library-on-rerun |
51 | | -{% else %} |
| 90 | +{% else %} |
52 | 91 | ./utr --suite=playmode --player-load-path=build/players --artifacts_path=build/test-results --testfilter=Unity.Netcode.RuntimeTests --playergraphicsapi=Null --reruncount=1 --clean-library-on-rerun |
53 | | -{% endif %} |
| 92 | +{% endif %} |
54 | 93 |
|
55 | | - artifacts: |
56 | | - logs: |
57 | | - paths: |
58 | | - - artifacts/**/* |
59 | | - - build/test-results/** |
60 | | - dependencies: |
61 | | - - .yamato/project-pack.yml#project_pack_-_{{ project.name }} |
| 94 | +artifacts: |
| 95 | + logs: |
| 96 | + paths: |
| 97 | + - build/test-results/** |
| 98 | +dependencies: |
| 99 | + - .yamato/desktop-standalone-tests.yml#desktop_standalone_build_{{ project.name }}_{{ platform.name }}_{{ backend }}_{{ editor }} |
62 | 100 | {% endfor -%} |
63 | 101 | {% endfor -%} |
64 | 102 | {% endfor -%} |
|
0 commit comments