浏览代码
Merge pull request #29 from Unity-Technologies/publish-server
Merge pull request #29 from Unity-Technologies/publish-server
(WIP) - Promotion setup and an environment file/main
GitHub
4 年前
当前提交
6f9dd21c
共有 5 个文件被更改,包括 104 次插入 和 128 次删除
-
25.yamato/environments.yml
-
153.yamato/promotion.yml
-
4.yamato/publish.yml
-
36.yamato/upm-ci-full.yml
-
14.yamato/upm-ci-testprojects.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 %} |
撰写
预览
正在加载...
取消
保存
Reference in new issue