{% metadata_file .yamato/environments.yml %} --- {% for editor in publish_editors %} {% for platform in publish_platforms %} promotion_test_{{ platform.name }}_{{ editor.version }}: name : Promotion Test {{ editor.version }} on {{ platform.name }} agent: type: Unity::VM image: package-ci/win10:stable flavor: b1.large variables: UPMCI_PROMOTION: 1 commands: - npm install upm-ci-utils@stable -g --registry {{ upmci_registry }} - upm-ci package test --unity-version {{ editor.version }} --package-path package artifacts: logs: paths: - "upm-ci~/test-results/**/*" dependencies: - .yamato/pack.yml#pack {% endfor %} {% endfor %} promotion_test_trigger: name: Promotion Tests Trigger dependencies: {% for editor in publish_editors %} {% for platform in publish_platforms %} - .yamato/promote.yml#promotion_test_{{platform.name}}_{{editor.version}} {% endfor %} {% endfor %} promote: name: Promote to Production agent: type: Unity::VM image: package-ci/win10:stable flavor: b1.large variables: UPMCI_PROMOTION: 1 commands: - npm install upm-ci-utils@stable -g --registry {{ upmci_registry }} - upm-ci package promote --package-path package --dry-run triggers: tags: only: - /^(r|R)elease-\d+\.\d+\.\d+(-preview(\.\d+)?)?$/ artifacts: artifacts: paths: - "upm-ci~/packages/*.tgz" dependencies: - .yamato/pack.yml#pack {% for editor in publish_editors %} {% for platform in publish_platforms %} - .yamato/promote.yml#promotion_test_{{ platform.name }}_{{ editor.version }} {% endfor %} {% endfor %}