From 5e84238da7f03a167fa475354b3041f1da3d4db0 Mon Sep 17 00:00:00 2001 From: Tomas Dirvanauskas Date: Wed, 21 Aug 2019 16:35:32 +0300 Subject: [PATCH] Add promotion.yml --- .yamato/promotion.yml | 76 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 76 insertions(+) create mode 100644 .yamato/promotion.yml diff --git a/.yamato/promotion.yml b/.yamato/promotion.yml new file mode 100644 index 00000000..1b19e8d8 --- /dev/null +++ b/.yamato/promotion.yml @@ -0,0 +1,76 @@ +test_editors: + - version: 2019.1 +test_platforms: + - name: win + type: Unity::VM + image: package-ci/win10:stable + flavor: b1.large +--- +{% for editor in test_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@stable -g --registry https://api.bintray.com/npm/unity/unity-npm + - upm-ci package test --unity-version {{ editor.version }} --package-path ./com.unity.mobile.android-logcat + artifacts: + logs: + paths: + - "upm-ci~/test-results/**/*" + dependencies: + - .yamato/upm-ci.yml#pack +{% endfor %} +{% endfor %} + +promotion_test_trigger: + name: Promotion Tests Trigger + agent: + type: Unity::VM + image: package-ci/win10:stable + flavor: b1.large + artifacts: + logs: + paths: + - "upm-ci~/test-results/**/*" + packages: + paths: + - "upm-ci~/packages/**/*" + dependencies: +{% for editor in test_editors %} +{% for platform in test_platforms %} + - .yamato/promotion.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 https://api.bintray.com/npm/unity/unity-npm + - upm-ci package promote --package-path ./com.unity.mobile.android-logcat + triggers: + tags: + only: + - /^(r|R)elease-\d+\.\d+\.\d+(-preview(\.\d+)?)?$/ + artifacts: + artifacts: + paths: + - "upm-ci~/packages/*.tgz" + dependencies: + - .yamato/upm-ci.yml#pack +{% for editor in test_editors %} +{% for platform in test_platforms %} + - .yamato/promotion.yml#promotion_test_{{ platform.name }}_{{ editor.version }} +{% endfor %} +{% endfor %}