89 lines
2.5 KiB
YAML
89 lines
2.5 KiB
YAML
{% metadata_file .yamato/package.metafile %}
|
|
|
|
test_platforms:
|
|
- name: win
|
|
type: Unity::VM
|
|
image: package-ci/win10:v1.21.0-1103459
|
|
flavor: b1.large
|
|
---
|
|
|
|
{% for editor in editors %}
|
|
{% for platform in test_platforms %}
|
|
promotion_test_{{ platform.name }}_{{ editor.version }}:
|
|
name : Promotion Test {{ editor.version }} on {{ platform.name }}
|
|
agent:
|
|
type: {{ platform.type }}
|
|
image: {{ platform.image }}
|
|
flavor: {{ platform.flavor}}
|
|
variables:
|
|
UPMCI_PROMOTION: 1
|
|
commands:
|
|
- npm install upm-ci-utils@{{ upm.package_version }} -g --registry {{ upm.registry_url }}
|
|
- upm-ci package test --unity-version {{ editor.version }} --package-path {{ packagename }} --platform editmode --backend mono
|
|
artifacts:
|
|
logs:
|
|
paths:
|
|
- "upm-ci~/test-results/**/*"
|
|
dependencies:
|
|
- .yamato/upm-ci-renderstreaming-packages.yml#pack
|
|
{% endfor %}
|
|
{% endfor %}
|
|
|
|
promote_dry_run:
|
|
name: Promote Dry Run to Production
|
|
agent:
|
|
type: Unity::VM
|
|
image: package-ci/win10:v1.21.0-1103459
|
|
flavor: b1.large
|
|
variables:
|
|
UPMCI_PROMOTION: 1
|
|
commands:
|
|
- npm install upm-ci-utils@{{ upm.package_version }} -g --registry {{ upm.registry_url }}
|
|
- upm-ci package promote --dry-run --package-path {{ packagename }}
|
|
triggers:
|
|
tags:
|
|
only:
|
|
- /^(r|R)elease-\d+\.\d+\.\d+(-preview(\.\d+)?)?$/
|
|
artifacts:
|
|
artifacts:
|
|
paths:
|
|
- "upm-ci~/packages/*.tgz"
|
|
dependencies:
|
|
- .yamato/upm-ci-renderstreaming-packages.yml#pack
|
|
{% for editor in editors %}
|
|
{% if editor.version != "trunk" -%} # exclude trunk to test
|
|
{% for platform in test_platforms %}
|
|
- .yamato/promotion.yml#promotion_test_{{ platform.name }}_{{ editor.version }}
|
|
{% endfor %}
|
|
{% endif %}
|
|
{% endfor %}
|
|
|
|
promote:
|
|
name: Promote to Production
|
|
agent:
|
|
type: Unity::VM
|
|
image: package-ci/win10:v1.21.0-1103459
|
|
flavor: b1.large
|
|
variables:
|
|
UPMCI_PROMOTION: 1
|
|
commands:
|
|
- npm install upm-ci-utils@{{ upm.package_version }} -g --registry {{ upm.registry_url }}
|
|
- upm-ci package promote --package-path {{ packagename }}
|
|
triggers:
|
|
tags:
|
|
only:
|
|
- /^(r|R)elease-\d+\.\d+\.\d+(-preview(\.\d+)?)?$/
|
|
artifacts:
|
|
artifacts:
|
|
paths:
|
|
- "upm-ci~/packages/*.tgz"
|
|
dependencies:
|
|
- .yamato/upm-ci-renderstreaming-packages.yml#pack
|
|
{% for editor in editors %}
|
|
{% if editor.version != "trunk" -%} # exclude trunk to test
|
|
{% for platform in test_platforms %}
|
|
- .yamato/promotion.yml#promotion_test_{{ platform.name }}_{{ editor.version }}
|
|
{% endfor %}
|
|
{% endif %}
|
|
{% endfor %}
|