浏览代码

Merge pull request #29 from Unity-Technologies/publish-server

(WIP) - Promotion setup and an environment file
/main
GitHub 5 年前
当前提交
6f9dd21c
共有 5 个文件被更改,包括 104 次插入128 次删除
  1. 25
      .yamato/environments.yml
  2. 153
      .yamato/promotion.yml
  3. 4
      .yamato/publish.yml
  4. 36
      .yamato/upm-ci-full.yml
  5. 14
      .yamato/upm-ci-testprojects.yml

25
.yamato/environments.yml


test_editors:
- version: 2019.3.15f1
publish_editors:
- version: 2019.3.15f1
publish_platforms:
- name: win
type: Unity::VM
image: package-ci/win10:stable
flavor: b1.large
extra-args: --force-d3d11
standalone-platform: StandaloneWindows64
- name: mac
type: Unity::VM::osx
image: package-ci/mac:stable
flavor: m1.mac
extra-args: --force-metal
standalone-platform: StandaloneOSX
- name: ubuntu
type: Unity::VM
image: package-ci/ubuntu:latest
flavor: b1.large
test_platforms:
- name: win
type: Unity::VM

args: --suite=playmode --platform=
- name: editmode
display_name: editmode
args: --suite=playmode --suite=editor --platform=editmode
args: --suite=playmode --suite=editor --platform=Editor
package_variants:
- name: Perception

153
.yamato/promotion.yml


# The Yamato build step `publish` will publish the com.unity.perception package to the `upm-candidates` registry. To see which versions of the package have been published, see
# * https://artifactory.prd.cds.internal.unity3d.com/artifactory/webapp/#/artifacts/browse/tree/General/upm-candidates/com.unity.perception
# * https://bintray.com/unity
#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 --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
# 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@latest -g --registry https://artifactory.prd.cds.internal.unity3d.com/artifactory/api/npm/upm-npm
# - upm-ci package promote
# 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 %}
{% metadata_file .yamato/environments.yml %}
---
{% for variant in package_variants %}
{% for editor in test_editors %}
{% for platform in test_platforms %}
promotion_test_{{ platform.name }}_{{ editor.version }}:
name : Package tests ({{variant.name}} pkg, {{ editor.version }}, {{ platform.name }})
agent:
type: {{ platform.type }}
image: {{ platform.image }}
flavor: {{ platform.flavor}}
variables:
UPMCI_PROMOTION: 1
commands:
- 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
artifacts:
logs:
paths:
- "upm-ci~/test-results/**/*"
dependencies:
- .yamato/upm-ci-full.yml#pack_{{ variant.name }}
{% endfor %}
{% endfor %}
{% endfor %}
promotion_test_trigger:
name: Promotion Tests Trigger
dependencies:
{% for editor in publish_editors %}
{% for platform in publish_platforms %}
{% for suite in suites %}
{% for project in projects %}
{% for variant in package_variants %}
- .yamato/promote.yml#promotion_test_{{platform.name}}_{{editor.version}}
- .yamato/upm-ci-full.yml#pkg_test_{{variant.name}}_{{platform.name}}_{{editor.version}}
- .yamato/upm-ci-testprojects.yml#{{project.name}}_windows_{{suite.name}}_{{editor.version}}
{% endfor %}
{% endfor %}
{% endfor %}
{% 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 ./com.unity.perception
triggers:
tags:
only:
- /^(r|R)elease-\d+\.\d+\.\d+(-preview(\.\d+)?)?$/
artifacts:
artifacts:
paths:
- "upm-ci~/packages/*.tgz"
dependencies:
{% for variant in package_variants %}
{% for editor in publish_editors %}
{% for platform in publish_platforms %}
- .yamato/upm-ci-full.yml#pack_{{ variant.name }}
- .yamato/promote.yml#promotion_test_{{ platform.name }}_{{ editor.version }}
{% endfor %}
{% endfor %}
{% endfor %}

4
.yamato/publish.yml


image: package-ci/win10:stable
flavor: b1.large
commands:
- npm install upm-ci-utils@stable -g --registry https://artifactory.prd.cds.internal.unity3d.com/artifactory/api/npm/upm-npm
- npm install upm-ci-utils@stable -g --registry {{ upmci_registry }}
- /^(r|R)(c|C)-\d+\.\d+\.\d+(-preview(\.\d+)?)?$/
- "/^(r|R)(c|C)-+(-preview(+)?)?$/"
artifacts:
artifacts:
paths:

36
.yamato/upm-ci-full.yml


test_editors:
- version: 2019.3.15f1
test_platforms:
- name: win
type: Unity::VM
image: package-ci/win10:stable
flavor: b1.large
extra-args: --force-d3d11
standalone-platform: StandaloneWindows64
- name: mac
type: Unity::VM::osx
image: package-ci/mac:stable
flavor: m1.mac
extra-args: --force-metal
standalone-platform: StandaloneOSX
- name: ubuntu
type: Unity::VM
image: package-ci/ubuntu:latest
flavor: b1.large
suites:
- name: standalone
display_name: standalone
args: --suite=playmode --platform=
- name: editmode
display_name: editmode
args: --suite=playmode --suite=editor --platform=editmode
package_variants:
- name: Perception
{% metadata_file .yamato/environments.yml %}
projects:
- name: PerceptionHDRP
- name: PerceptionURP
---
{% for variant in package_variants %}
pack_{{ variant.name }}:

flavor: {{ platform.flavor}}
commands:
- git submodule update --init --recursive
- npm install upm-ci-utils -g --registry https://artifactory.prd.cds.internal.unity3d.com/artifactory/api/npm/upm-npm
- npm install upm-ci-utils -g --registry {{ upmci_registry }}
- upm-ci package test -u {{ editor.version }} --package-path ./com.unity.perception --type vetting-tests
artifacts:
logs:

14
.yamato/upm-ci-testprojects.yml


test_editors:
- version: 2019.3.15f1
suites:
- name: standalone
display_name: standalone
args: --suite=playmode --platform=
- name: editmode
display_name: editmode
args: --suite=playmode --suite=editor --platform=Editor
projects:
- name: PerceptionHDRP
- name: PerceptionURP
{% metadata_file .yamato/environments.yml %}
---
{% for editor in test_editors %}

正在加载...
取消
保存