2020-07-02 06:41:59 +03:00
|
|
|
test_editors:
|
2021-05-18 06:53:25 +03:00
|
|
|
- version: 51fe52edbb02
|
2020-07-02 06:41:59 +03:00
|
|
|
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
|
|
|
|
---
|
|
|
|
pack:
|
|
|
|
name: Pack
|
|
|
|
agent:
|
|
|
|
type: Unity::VM
|
2020-07-02 08:06:30 +03:00
|
|
|
image: package-ci/ubuntu:stable
|
|
|
|
flavor: b1.small
|
2020-07-02 06:41:59 +03:00
|
|
|
commands:
|
2020-07-02 08:39:37 +03:00
|
|
|
- chmod +x ./prepare_package.sh
|
2020-07-02 08:33:31 +03:00
|
|
|
- ./prepare_package.sh
|
2020-07-03 07:15:16 +03:00
|
|
|
- chmod +x ./add_sample.sh
|
|
|
|
- ./add_sample.sh
|
2020-07-02 06:41:59 +03:00
|
|
|
- npm install upm-ci-utils@stable -g --registry https://artifactory.prd.cds.internal.unity3d.com/artifactory/api/npm/upm-npm
|
|
|
|
- upm-ci package pack --package-path ./com.unity.uiwidgets
|
|
|
|
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
|
|
|
|
- upm-ci package test --package-path ./com.unity.uiwidgets --unity-version {{ editor.version }}
|
|
|
|
artifacts:
|
|
|
|
logs:
|
|
|
|
paths:
|
|
|
|
- "upm-ci~/test-results/**/*"
|
|
|
|
packages:
|
|
|
|
paths:
|
|
|
|
- "upm-ci~/packages/**/*"
|
|
|
|
dependencies:
|
|
|
|
- .yamato/upm-ci.yml#pack
|
|
|
|
{% endfor %}
|
|
|
|
{% endfor %}
|
|
|
|
|
|
|
|
test_trigger:
|
|
|
|
name: Tests Trigger
|
|
|
|
agent:
|
|
|
|
type: Unity::VM
|
|
|
|
image: package-ci/win10:stable
|
|
|
|
flavor: b1.large
|
|
|
|
commands:
|
|
|
|
- dir
|
|
|
|
triggers:
|
|
|
|
branches:
|
|
|
|
only:
|
|
|
|
- "/.*/"
|
|
|
|
artifacts:
|
|
|
|
logs:
|
|
|
|
paths:
|
|
|
|
- "upm-ci~/test-results/**/*"
|
|
|
|
packages:
|
|
|
|
paths:
|
|
|
|
- "upm-ci~/packages/**/*"
|
|
|
|
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 package publish --package-path ./com.unity.uiwidgets
|
|
|
|
triggers:
|
|
|
|
tags:
|
|
|
|
only:
|
|
|
|
- /^(r|R)(c|C)-\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/upm-ci.yml#test_{{ platform.name }}_{{ editor.version }}
|
|
|
|
{% endfor %}
|
|
|
|
{% endfor %}
|