|
| 1 | +{% metadata_file .yamato/project.metafile %} |
| 2 | +--- |
| 3 | + |
| 4 | +{% for project in projects -%} |
| 5 | +{% if project.name == "testproject" %} |
| 6 | +{% for editor in project.test_editors -%} |
| 7 | +{% for platform in test_platforms -%} |
| 8 | +singlenode_multiprocess_test_testproject_{{ editor }}_{{ platform.name }}: |
| 9 | + name : Multiprocess Tests - {{ editor }} on {{ platform.name }} |
| 10 | + agent: |
| 11 | + type: {{ platform.type }} |
| 12 | + image: {{ platform.image }} |
| 13 | + flavor: {{ platform.flavor}} |
| 14 | + commands: |
| 15 | + - pip install unity-downloader-cli --index-url https://artifactory.prd.it.unity3d.com/artifactory/api/pypi/pypi/simple |
| 16 | +{% if editor != "trunk" %} |
| 17 | + - unity-downloader-cli -u {{ editor }} -c editor -w --fast |
| 18 | + - curl -s https://artifactory.prd.it.unity3d.com/artifactory/unity-tools-local/utr-standalone/utr{% if platform.name == "win" %}.bat --output utr.bat{% endif %}{% if platform.name != "win" %} --output utr && chmod +x ./utr{% endif %} |
| 19 | + - {{ platform.editorpath }} -projectpath testproject -batchmode -nographics -quit -logfile BuildMultiprocessTestPlayer.log -executeMethod Unity.Netcode.MultiprocessRuntimeTests.BuildMultiprocessTestPlayer.BuildRelease |
| 20 | +{% if platform.name == "mac" %} - sudo codesign --force --deep --sign - ./testproject/Builds/MultiprocessTests/MultiprocessTestPlayer.app{% endif %} |
| 21 | + - {{ platform.utr }} --suite=playmode --testproject=testproject --editor-location=.Editor --testfilter=Unity.Netcode.MultiprocessRuntimeTests --extra-editor-arg=-bypassIgnoreUTR |
| 22 | +{% endif %} |
| 23 | + after: |
| 24 | + - echo "After block" |
| 25 | +{% if editor != "trunk" %} |
| 26 | +{% if platform.name == "win" %} - copy %USERPROFILE%\.multiprocess\logfile* .{% endif %} |
| 27 | +{% if platform.name != "win" %} - cp $HOME/.multiprocess/logfile* .{% endif %} |
| 28 | +{% endif %} |
| 29 | + artifacts: |
| 30 | + logs: |
| 31 | + paths: |
| 32 | + - "upm-ci~/test-results/**/*" |
| 33 | + - BuildMultiprocessTestPlayer.log |
| 34 | + - "logfile*" |
| 35 | + - "*.log" |
| 36 | + - "*.txt" |
| 37 | + dependencies: |
| 38 | + - .yamato/project-pack.yml#pack_{{ project.name }} |
| 39 | +{% endfor -%} |
| 40 | +{% endfor -%} |
| 41 | +{% endif -%} |
| 42 | +{% endfor -%} |
0 commit comments