SynthDet/.yamato/ci-test.yml

85 строки
3.1 KiB
YAML

test_editors:
- version: 2020.3.0f1
suites:
- name: standalone
display_name: standalone
args: --suite=playmode --platform=
- name: editmode
display_name: editmode
args: --suite=playmode --suite=editor --platform=Editor
---
all_tests:
name: All Tests
agent:
type: Unity::VM
image: package-ci/win10:stable
flavor: b1.small
commands:
- dir
#triggers:
# branches:
# only:
#- "/.*/"
artifacts:
logs:
paths:
- "upm-ci~/test-results/**/*"
packages:
paths:
- "upm-ci~/packages/**/*"
dependencies:
{% for editor in test_editors %}
{% for suite in suites %}
- .yamato/ci-test.yml#windows_{{suite.name}}_{{editor.version}}
- .yamato/ci-test.yml#linux_{{suite.name}}_{{editor.version}}
{% endfor %}
{% endfor %}
{% for editor in test_editors %}
{% for suite in suites %}
windows_{{suite.name}}_{{editor.version}}:
name : {{ suite.display_name }} tests ({{ editor.version }}, Windows)
agent:
type: Unity::VM
image: package-ci/win10:stable
flavor: b1.large
commands:
- git submodule update --init --recursive
- git clone git@github.cds.internal.unity3d.com:unity/utr.git utr
- pip install unity-downloader-cli --extra-index-url https://artifactory.internal.unity3d.com/api/pypi/common-python/simple
- unity-downloader-cli -u {{ editor.version }} -c editor -c StandaloneSupport-IL2CPP -c Linux --wait --published
{% if suite.name == "standalone" %}
- utr/utr --testproject=./SynthDet --editor-location=./.Editor --artifacts_path=test-results --stdout-filter=minimal --extra-editor-arg="--force-d3d11" {{suite.args}}StandaloneWindows64
{% else %}
- utr/utr --testproject=./SynthDet --editor-location=./.Editor --artifacts_path=test-results --stdout-filter=minimal --extra-editor-arg="--force-d3d11" {{suite.args}}
{% endif %}
artifacts:
logs:
paths:
- "test-results/**/*"
linux_{{suite.name}}_{{editor.version}}:
name : {{ suite.display_name }} tests ({{ editor.version }}, Linux)
agent:
type: Unity::VM::GPU
image: cds-ops/ubuntu-18.04-base:latest
flavor: b1.large
commands:
- git submodule update --init --recursive
- sudo -H pip install --upgrade pip
- sudo -H pip install unity-downloader-cli --index-url https://artifactory.prd.it.unity3d.com/artifactory/api/pypi/pypi/simple --upgrade
- git clone git@github.cds.internal.unity3d.com:unity/utr.git utr
- sudo unity-downloader-cli -u {{ editor.version }} -c editor -c StandaloneSupport-IL2CPP -c Linux --wait --published
{% if suite.name == "standalone" %}
- DISPLAY=:0.0 utr/utr --testproject=./SynthDet --editor-location=.Editor --artifacts_path=test-results --stdout-filter=minimal --extra-editor-arg="--force-vulkan" {{suite.args}}StandaloneLinux64
{% else %}
- DISPLAY=:0.0 utr/utr --testproject=./SynthDet --editor-location=.Editor --artifacts_path=test-results --stdout-filter=minimal --extra-editor-arg="--force-vulkan" {{suite.args}}
{% endif %}
artifacts:
logs:
paths:
- "test-results/**/*"
{% endfor %}
{% endfor %}