您最多选择25个主题
主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
124 行
3.2 KiB
124 行
3.2 KiB
target_editor:
|
|
version: 2019.4
|
|
test_editors:
|
|
- version: 2019.4
|
|
#- version: 2020.1
|
|
#- version: 2020.2
|
|
#- version: trunk
|
|
test_platforms:
|
|
- name: win
|
|
type: Unity::VM
|
|
image: package-ci/win10:stable
|
|
flavor: b1.large
|
|
- name: mac
|
|
type: Unity::VM::osx
|
|
image: package-ci/mac:stable
|
|
flavor: m1.mac
|
|
#- name: ubuntu
|
|
# type: Unity::VM
|
|
# image: package-ci/ubuntu:stable
|
|
# flavor: b1.large
|
|
# Use if Linux instance with GPU required
|
|
#- name: centos
|
|
# type: Unity::VM::GPU
|
|
# image: package-ci/centos:stable
|
|
# flavor: b1.large
|
|
---
|
|
prepack:
|
|
name: Pre-Pack - Primed Artifacts
|
|
agent:
|
|
type: Unity::VM
|
|
image: package-ci/win10:stable
|
|
flavor: b1.large
|
|
commands:
|
|
- pip install unity-downloader-cli --index-url https://artifactory.prd.it.unity3d.com/artifactory/api/pypi/pypi/simple --upgrade
|
|
- unity-downloader-cli -u {{target_editor.version}} -c editor -w
|
|
- .\.Editor\Unity.exe -batchmode -quit
|
|
artifacts:
|
|
primed:
|
|
paths:
|
|
- "Library/Artifacts/**"
|
|
- "Library/ArtifactDB"
|
|
- "Library/SourceAssetDB"
|
|
|
|
pack:
|
|
name: Pack
|
|
agent:
|
|
type: Unity::VM
|
|
image: package-ci/ubuntu: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
|
|
- upm-ci template pack
|
|
dependencies:
|
|
- .yamato/upm-ci.yml#prepack
|
|
artifacts:
|
|
packages:
|
|
paths:
|
|
- "upm-ci~/**/*"
|
|
|
|
{% for editor in test_editors %}
|
|
{% for platform in test_platforms %}
|
|
test_{{ platform.name }}_{{ editor.version }}:
|
|
name : Test {{ editor.version }} on {{ platform.name }}
|
|
agent:
|
|
type: {{ platform.type }}
|
|
image: {{ platform.image }}
|
|
flavor: {{ platform.flavor}}
|
|
commands:
|
|
- npm install upm-ci-utils@stable -g --registry https://artifactory.prd.cds.internal.unity3d.com/artifactory/api/npm/upm-npm
|
|
- {% if platform.name == "centos" %}DISPLAY=:0 {% endif %}upm-ci template test -u {{ editor.version }}
|
|
artifacts:
|
|
logs:
|
|
paths:
|
|
- "upm-ci~/test-results/**/*"
|
|
dependencies:
|
|
- .yamato/upm-ci.yml#pack
|
|
{% endfor %}
|
|
{% endfor %}
|
|
|
|
test_trigger:
|
|
name: Tests Trigger
|
|
triggers:
|
|
branches:
|
|
only:
|
|
- "master"
|
|
- "dev"
|
|
- "/staging-.*/"
|
|
pull_requests:
|
|
- targets:
|
|
only:
|
|
- "/.*/"
|
|
dependencies:
|
|
- .yamato/upm-ci.yml#pack
|
|
{% for editor in test_editors %}
|
|
{% for platform in test_platforms %}
|
|
- .yamato/upm-ci.yml#test_{{platform.name}}_{{editor.version}}
|
|
{% endfor %}
|
|
{% endfor %}
|
|
|
|
publish:
|
|
name: Publish to Internal Registry
|
|
agent:
|
|
type: Unity::VM
|
|
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
|
|
- upm-ci template publish
|
|
triggers:
|
|
tags:
|
|
only:
|
|
- /^(r|R)(c|C)-\d+\.\d+\.\d+(-preview(\.\d+)?)?$/
|
|
artifacts:
|
|
packages:
|
|
paths:
|
|
- "upm-ci~/packages/**/*"
|
|
- "upm-ci~/templates/*.tgz"
|
|
dependencies:
|
|
- .yamato/upm-ci.yml#pack
|
|
{% for editor in test_editors %}
|
|
{% for platform in test_platforms %}
|
|
- .yamato/upm-ci.yml#test_{{ platform.name }}_{{ editor.version }}
|
|
{% endfor %}
|
|
{% endfor %}
|