UnityRenderStreaming/.yamato/upm-ci-renderstreaming-pack...

98 строки
3.1 KiB
YAML

# .yamato/upm-ci-renderstreaming-packages.yml
{% metadata_file .yamato/meta/environments.yml %}
packages:
- name: renderstreaming
packagename: com.unity.renderstreaming
---
{% for package in packages %}
pack_{{ package.name }}:
name: Pack {{ package.packagename }}
agent:
type: Unity::VM
image: renderstreaming/win10:latest
flavor: b1.large
commands:
- npm install upm-ci-utils@{{ upm.package_version }} -g --registry {{ upm.registry_url }}
- upm-ci package pack --package-path {{ package.packagename }}
artifacts:
{{ package.name }}_package:
paths:
- "upm-ci~/packages/**/*"
{% for editor in editors %}
{% for platform in platforms %}
test_{{ package.name }}_{{ platform.name }}_{{ editor.version }}:
name : Test {{ package.packagename }} {{ editor.version }} on {{ platform.name }}
agent:
type: {{ platform.type }}
image: {{ platform.image }}
flavor: {{ platform.flavor}}
commands:
- npm install upm-ci-utils@{{ upm.package_version }} -g --registry {{ upm.registry_url }}
- upm-ci package test -u {{ editor.version }} --package-path {{ package.packagename }}
triggers:
branches:
only:
- "/.*/"
except:
- "master"
artifacts:
{{ package.name }}_{{ editor.version }}_{{ platform.name }}_test_results:
paths:
- "upm-ci~/test-results/**/*"
dependencies:
- .yamato/upm-ci-renderstreaming-packages.yml#pack_{{ package.name }}
{% endfor %}
{% endfor %}
publish_dry_run_{{ package.name }}:
name: Publish Dry Run {{ package.packagename }}
agent:
type: Unity::VM
image: package-ci/win10:stable
flavor: b1.large
commands:
- npm install upm-ci-utils@{{ upm.package_version }} -g --registry {{ upm.registry_url }}
- upm-ci package publish --dry-run --package-path {{ package.packagename }}
triggers:
tags:
only:
- /^(r|R)(c|C)-\d+\.\d+\.\d+(-preview(\.\d+)?)?$/
artifacts:
{{ package.name }}_artifacts.zip:
paths:
- "upm-ci~/packages/*.tgz"
dependencies:
- .yamato/upm-ci-renderstreaming-packages.yml#pack_{{ package.name }}
{% for editor in editors %}
{% for platform in platforms %}
- .yamato/upm-ci-renderstreaming-packages.yml#test_{{ package.name }}_{{ platform.name }}_{{ editor.version }}
{% endfor %}
{% endfor %}
publish_{{ package.name }}:
name: Publish {{ package.packagename }}
agent:
type: Unity::VM
image: package-ci/win10:stable
flavor: b1.large
commands:
- npm install upm-ci-utils@{{ upm.package_version }} -g --registry {{ upm.registry_url }}
- upm-ci package publish --package-path {{ package.packagename }}
triggers:
tags:
only:
- /^(r|R)(c|C)-\d+\.\d+\.\d+(-preview(\.\d+)?)?$/
artifacts:
{{ package.name }}_artifacts.zip:
paths:
- "upm-ci~/packages/*.tgz"
dependencies:
- .yamato/upm-ci-renderstreaming-packages.yml#pack_{{ package.name }}
{% for editor in editors %}
{% for platform in platforms %}
- .yamato/upm-ci-renderstreaming-packages.yml#test_{{ package.name }}_{{ platform.name }}_{{ editor.version }}
{% endfor %}
{% endfor %}
{% endfor %}