UnityRenderStreaming/.yamato/upm-ci-webapp.yml

87 строки
2.3 KiB
YAML

platforms:
- name: win
type: Unity::VM
image: package-ci/win10:stable
flavor: b1.xlarge
pack_command: pack_webapp.cmd
test_command: test_webapp.cmd
client_test_command: test_webapp_client.cmd
- name: macos
type: Unity::VM::osx
image: package-ci/mac:latest
flavor: m1.mac
pack_command: ./pack_webapp.sh
test_command: ./test_webapp.sh
client_test_command: ./test_webapp_client.sh
- name: linux
type: Unity::VM
image: package-ci/ubuntu:latest
flavor: b1.xlarge
pack_command: ./pack_webapp.sh
test_command: ./test_webapp.sh
client_test_command: ./test_webapp_client.sh
projects:
- name: renderstreaming
packagename: com.unity.webapp.renderstreaming
---
{% for project in projects %}
{% for platform in platforms %}
pack_{{ platform.name }}:
name : Pack {{ project.packagename }} on {{ platform.name }}
agent:
type: {{ platform.type }}
image: {{ platform.image }}
flavor: {{ platform.flavor }}
commands:
- {{ platform.pack_command }}
artifacts:
packages:
paths:
- "WebApp/bin~/**/*"
{% endfor %}
{% for platform in platforms %}
test_{{ platform.name }}:
name : Test {{ project.packagename }} on {{ platform.name }}
agent:
type: {{ platform.type }}
image: {{ platform.image }}
flavor: {{ platform.flavor }}
commands:
- {{ platform.test_command }}
artifacts:
logs:
paths:
- "WebApp/output.log"
- "WebApp/coverage/**/*"
dependencies:
- .yamato/upm-ci-webapp.yml#pack_{{ platform.name }}
test_client_{{ platform.name }}:
name : Test Client {{ project.packagename }} on {{ platform.name }}
agent:
type: {{ platform.type }}
image: {{ platform.image }}
flavor: {{ platform.flavor }}
commands:
- {{ platform.client_test_command }}
artifacts:
logs:
paths:
- "WebApp/client/output.log"
- "WebApp/client/coverage/**/*"
dependencies:
- .yamato/upm-ci-webapp.yml#pack_{{ platform.name }}
{% endfor %}
trigger_webapp_test_{{ project.name }}:
name : Trigger all WebApp test {{ project.packagename }}
triggers:
expression: pull_request.target eq "develop"
dependencies:
{% for platform in platforms %}
- .yamato/upm-ci-webapp.yml#test_{{ platform.name }}
- .yamato/upm-ci-webapp.yml#test_client_{{ platform.name }}
{% endfor %}
{% endfor %}