{% metadata_file .yamato/environments.yml %}
---
{% for editor in publish_editors %}
{% for platform in publish_platforms %}
{% for variant in package_variants %}
{% for editor in test_editors %}
{% for platform in test_platforms %}
name : Promotion Test {{ editor.version }} on {{ platform.name }}
name : Package tests ({{variant.name}} pkg, {{ editor.version }}, {{ platform.name }})
type: Unity::VM
image: package-ci/win10:stable
flavor: b1.large
type: {{ platform.type }}
image: {{ platform.image }}
flavor: {{ platform.flavor}}
- npm install upm-ci-utils@stable -g --registry {{ upmci_registry }}
- upm-ci package test --unity-version {{ editor.version }} --package-path package
- git submodule update --init --recursive
- npm install upm-ci-utils -g --registry {{ upmci_registry }}
- upm-ci package test -u {{ editor.version }} --package-path ./com.unity.perception --type vetting-tests
- .yamato/pack.yml#pack
- .yamato/upm-ci-full.yml#pack_{{ variant.name }}
{% endfor %}
{% for suite in suites %}
{% for project in projects %}
- .yamato/upm-ci-full.yml#pkg_test_{{variant.name}}_{{platform.name}}_{{editor.version}}
- .yamato/upm-ci-testprojects#{{project.name}}_windows_{{suite.name}}_{{editor.version}}.yml#
UPMCI_PROMOTION: 1
commands:
- upm-ci package promote --package-path package --dry-run
- upm-ci package promote --package-path ./com.unity.perception
triggers:
tags:
only:
paths:
- "upm-ci~/packages/*.tgz"
dependencies:
- upm-ci package publish --package-path com.unity.perception
branches:
- "/.*/"
- "/^(r|R)(c|C)-\d+\.\d+\.\d+(-preview(\.\d+)?)?$/"
artifacts: