|
| 1 | +test_editors: |
| 2 | + - version: 2019.1 |
| 3 | +test_platforms: |
| 4 | + - name: win |
| 5 | + type: Unity::VM |
| 6 | + image: package-ci/win10:stable |
| 7 | + flavor: b1.large |
| 8 | +--- |
| 9 | +{% for editor in test_editors %} |
| 10 | +{% for platform in test_platforms %} |
| 11 | +promotion_test_{{ platform.name }}_{{ editor.version }}: |
| 12 | + name : Promotion Test {{ editor.version }} on {{ platform.name }} |
| 13 | + agent: |
| 14 | + type: {{ platform.type }} |
| 15 | + image: {{ platform.image }} |
| 16 | + flavor: {{ platform.flavor}} |
| 17 | + variables: |
| 18 | + UPMCI_PROMOTION: 1 |
| 19 | + commands: |
| 20 | + - npm install upm-ci-utils@stable -g --registry https://api.bintray.com/npm/unity/unity-npm |
| 21 | + - upm-ci package test --unity-version {{ editor.version }} --package-path ./com.unity.mobile.android-logcat |
| 22 | + artifacts: |
| 23 | + logs: |
| 24 | + paths: |
| 25 | + - "upm-ci~/test-results/**/*" |
| 26 | + dependencies: |
| 27 | + - .yamato/upm-ci.yml#pack |
| 28 | +{% endfor %} |
| 29 | +{% endfor %} |
| 30 | + |
| 31 | +promotion_test_trigger: |
| 32 | + name: Promotion Tests Trigger |
| 33 | + agent: |
| 34 | + type: Unity::VM |
| 35 | + image: package-ci/win10:stable |
| 36 | + flavor: b1.large |
| 37 | + artifacts: |
| 38 | + logs: |
| 39 | + paths: |
| 40 | + - "upm-ci~/test-results/**/*" |
| 41 | + packages: |
| 42 | + paths: |
| 43 | + - "upm-ci~/packages/**/*" |
| 44 | + dependencies: |
| 45 | +{% for editor in test_editors %} |
| 46 | +{% for platform in test_platforms %} |
| 47 | + - .yamato/promotion.yml#promotion_test_{{platform.name}}_{{editor.version}} |
| 48 | +{% endfor %} |
| 49 | +{% endfor %} |
| 50 | + |
| 51 | +promote: |
| 52 | + name: Promote to Production |
| 53 | + agent: |
| 54 | + type: Unity::VM |
| 55 | + image: package-ci/win10:stable |
| 56 | + flavor: b1.large |
| 57 | + variables: |
| 58 | + UPMCI_PROMOTION: 1 |
| 59 | + commands: |
| 60 | + - npm install upm-ci-utils@stable -g --registry https://api.bintray.com/npm/unity/unity-npm |
| 61 | + - upm-ci package promote --package-path ./com.unity.mobile.android-logcat |
| 62 | + triggers: |
| 63 | + tags: |
| 64 | + only: |
| 65 | + - /^(r|R)elease-\d+\.\d+\.\d+(-preview(\.\d+)?)?$/ |
| 66 | + artifacts: |
| 67 | + artifacts: |
| 68 | + paths: |
| 69 | + - "upm-ci~/packages/*.tgz" |
| 70 | + dependencies: |
| 71 | + - .yamato/upm-ci.yml#pack |
| 72 | +{% for editor in test_editors %} |
| 73 | +{% for platform in test_platforms %} |
| 74 | + - .yamato/promotion.yml#promotion_test_{{ platform.name }}_{{ editor.version }} |
| 75 | +{% endfor %} |
| 76 | +{% endfor %} |
0 commit comments