您最多选择25个主题
主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
80 行
2.1 KiB
80 行
2.1 KiB
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@latest -g --registry https://artifactory.prd.cds.internal.unity3d.com/artifactory/api/npm/upm-npm
|
|
- upm-ci package test --package-path ./com.unity.uiwidgets --unity-version {{ editor.version }}
|
|
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
|
|
commands:
|
|
- dir
|
|
artifacts:
|
|
logs:
|
|
paths:
|
|
- "upm-ci~/test-results/**/*"
|
|
packages:
|
|
paths:
|
|
- "upm-ci~/packages/**/*"
|
|
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 %}
|
|
|
|
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@latest -g --registry https://artifactory.prd.cds.internal.unity3d.com/artifactory/api/npm/upm-npm
|
|
- upm-ci package promote --package-path ./com.unity.uiwidgets
|
|
triggers:
|
|
tags:
|
|
only:
|
|
- /^v\d+.\d+.\d+(-preview(.\d+)?)?$/
|
|
artifacts:
|
|
artifacts:
|
|
paths:
|
|
- "upm-ci~/packages/*.tgz"
|
|
dependencies:
|
|
- .yamato/upm-ci.yml#pack
|
|
- .yamato/upm-ci.yml#publish
|
|
{% for editor in test_editors %}
|
|
{% for platform in test_platforms %}
|
|
- .yamato/promotion.yml#promotion_test_{{ platform.name }}_{{ editor.version }}
|
|
{% endfor %}
|
|
{% endfor %}
|