浏览代码

publish stuyff

/main
Wesley Mareovich Smith 4 年前
当前提交
41424301
共有 5 个文件被更改,包括 87 次插入126 次删除
  1. 23
      .yamato/environments.yml
  2. 139
      .yamato/promotion.yml
  3. 2
      .yamato/publish.yml
  4. 34
      .yamato/upm-ci-full.yml
  5. 15
      .yamato/upm-ci-testprojects.yml

23
.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

139
.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 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 %}

2
.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 }}
- upm-ci package publish --package-path com.unity.perception
triggers:
tags:

34
.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
{% metadata_file .yamato/environments.yml %}
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
projects:
- name: PerceptionHDRP
- name: PerceptionURP
---
{% for variant in package_variants %}
pack_{{ variant.name }}:

15
.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 %}
{% for suite in suites %}
{% for project in projects %}

正在加载...
取消
保存