This commit is contained in:
Matt Schoen 2021-07-20 17:12:06 -07:00
Родитель 44a1c1e887
Коммит 3ad747792e
5 изменённых файлов: 43 добавлений и 51 удалений

Просмотреть файл

@ -6,7 +6,7 @@ pack:
flavor: b1.large
commands:
- git submodule update --init --recursive
- 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 https://artifactory.prd.it.unity3d.com/artifactory/api/npm/upm-npm
- upm-ci package pack --package-path .
artifacts:
packages:

26
.yamato/project.metafile Normal file
Просмотреть файл

@ -0,0 +1,26 @@
# Editors used for test before publication
blocking_test_editors:
- version: 2019.1.14f1
# Other editor versions used for tests
nonblocking_test_editors:
- version: 2019.4
- version: 2020.1
- version: 2020.2
- version: 2020.3
- version: 2021.1
- version: 2021.2
# Platforms that will be tested
test_platforms:
- name: Windows
type: Unity::VM
image: package-ci/win10:stable
flavor: b1.large
- name: MacOS
type: Unity::VM::osx
image: package-ci/mac:stable
flavor: m1.mac
urls:
upm: https://artifactory.prd.it.unity3d.com/artifactory/api/npm/upm-npm

Просмотреть файл

@ -1,13 +1,7 @@
test_editors:
- version: 2019.1.14f1
test_platforms:
- name: win
type: Unity::VM
image: package-ci/win10:stable
flavor: b1.large
{% metadata_file .yamato/project.metafile %}
---
{% for editor in test_editors %}
{% for editor in blocking_test_editors %}
{% for platform in test_platforms %}
promotion_test_{{ platform.name }}_{{ editor.version }}:
name : Promotion Test {{ editor.version }} on {{ platform.name }}
@ -18,7 +12,7 @@ promotion_test_{{ platform.name }}_{{ editor.version }}:
variables:
UPMCI_PROMOTION: 1
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 {{ urls.upm }}
- upm-ci package test --unity-version {{ editor.version }} --package-path .
artifacts:
logs:
@ -32,7 +26,7 @@ promotion_test_{{ platform.name }}_{{ editor.version }}:
promotion_test_trigger:
name: Promotion Tests Trigger
dependencies:
{% for editor in test_editors %}
{% for editor in blocking_test_editors %}
{% for platform in test_platforms %}
- .yamato/promote.yml#promotion_test_{{platform.name}}_{{editor.version}}
{% endfor %}
@ -47,7 +41,7 @@ promote:
variables:
UPMCI_PROMOTION: 1
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 {{ urls.upm }}
- upm-ci package promote --package-path .
triggers:
tags:
@ -59,7 +53,7 @@ promote:
- "upm-ci~/packages/*.tgz"
dependencies:
- .yamato/pack.yml#pack
{% for editor in test_editors %}
{% for editor in blocking_test_editors %}
{% for platform in test_platforms %}
- .yamato/promote.yml#promotion_test_{{ platform.name }}_{{ editor.version }}
{% endfor %}

Просмотреть файл

@ -1,14 +1,4 @@
test_editors:
- version: 2019.1.14f1
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
{% metadata_file .yamato/project.metafile %}
---
publish:
@ -18,7 +8,7 @@ publish:
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 {{ urls.upm }}
- upm-ci package publish --package-path .
triggers:
tags:
@ -30,7 +20,7 @@ publish:
- "upm-ci~/packages/*.tgz"
dependencies:
- .yamato/pack.yml#pack
{% for editor in test_editors %}
{% for editor in blocking_test_editors %}
{% for platform in test_platforms %}
- .yamato/test.yml#test_{{ platform.name }}_{{ editor.version }}
- .yamato/test.yml#validate_{{ platform.name }}_{{ editor.version }}

Просмотреть файл

@ -1,22 +1,4 @@
blocking_test_editors:
- version: 2019.1.14f1
nonblocking_test_editors:
- version: 2019.3.0f6
- version: 2019.4
- version: 2020.1
- version: 2020.2
- version: 2020.3
- version: 2021.1
- version: 2021.2
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
{% metadata_file .yamato/project.metafile %}
---
{% for editor in blocking_test_editors %}
@ -28,8 +10,8 @@ test_{{ platform.name }}_{{ editor.version }}:
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 package test -u {{ editor.version }} --package-path . --type package-tests
- npm install upm-ci-utils@stable -g --registry {{ urls.upm }}
- upm-ci package test -u {{ editor.version }} --package-path . --type package-tests --extra-create-project-arg="-upmNoDefaultPackages"
artifacts:
logs:
paths:
@ -48,8 +30,8 @@ test_{{ platform.name }}_{{ editor.version }}:
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 package test -u {{ editor.version }} --package-path . --type package-tests
- npm install upm-ci-utils@stable -g --registry {{ urls.upm }}
- upm-ci package test -u {{ editor.version }} --package-path . --type package-tests --extra-create-project-arg="-upmNoDefaultPackages"
artifacts:
logs:
paths:
@ -70,8 +52,8 @@ validate_{{ platform.name }}_{{ editor.version }}:
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 package test -u {{ editor.version }} --package-path . --type vetting-tests --platform editmode
- npm install upm-ci-utils@stable -g --registry {{ urls.upm }}
- upm-ci package test -u {{ editor.version }} --package-path . --type vetting-tests --platform editmode --extra-create-project-arg="-upmNoDefaultPackages"
artifacts:
logs:
paths: