Graphics/.yamato/_postprocessing_publish.yml

112 строки
3.3 KiB
YAML

# From https://github.com/Unity-Technologies/PostProcessing/blob/v2/.yamato/upm-ci.yml
name: postprocessing
test_editors:
- 2020.3
- 2019.4
- 2021.3
- 2022.1
- 2023.2
- trunk
test_platforms:
- name: win
type: Unity::VM
image: package-ci/win10:v4
flavor: b1.large
- name: mac
type: Unity::VM::osx
image: package-ci/macos-13:v4
flavor: m1.mac
---
{{ name }}_pack:
name: {{ name }} - Pack
agent:
type: Unity::VM
image: package-ci/win10:v4
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 pack --package-path com.unity.postprocessing
artifacts:
packages:
paths:
- "upm-ci~/**/*"
{% for editor in test_editors %}
{% for platform in test_platforms %}
{{ name }}_test_{{ platform.name }}_{{ editor }}:
name : {{ name }} - Test {{ editor }} 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 --unity-version {{ editor }} --package-path com.unity.postprocessing --extra-utr-arg="--compilation-errors-as-warnings"
artifacts:
logs:
paths:
- "upm-ci~/test-results/**/*"
dependencies:
- .yamato/_postprocessing_publish.yml#{{ name }}_pack
{% endfor %}
{% endfor %}
{{ name }}_test_trigger:
name: {{ name }} - Tests Trigger
dependencies:
- .yamato/_postprocessing_publish.yml#{{ name }}_pack
{% for editor in test_editors %}
{% for platform in test_platforms %}
- .yamato/_postprocessing_publish.yml#{{ name }}_test_{{platform.name}}_{{editor}}
{% endfor %}
{% endfor %}
{{ name }}_publish:
name: {{ name }} - Publish to Internal Registry
agent:
type: Unity::VM
image: package-ci/win10:v4
flavor: b1.large
variables:
UPMCI_ENABLE_PACKAGE_SIGNING: 1
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.postprocessing
artifacts:
artifacts:
paths:
- "upm-ci~/packages/*.tgz"
dependencies:
- .yamato/_postprocessing_publish.yml#{{ name }}_pack
{% for editor in test_editors %}
{% for platform in test_platforms %}
- .yamato/_postprocessing_publish.yml#{{ name }}_test_{{ platform.name }}_{{ editor }}
{% endfor %}
{% endfor %}
{{ name }}_publish_dry_run:
name: {{ name }} - Publish to Internal Registry [dry-run]
agent:
type: Unity::VM
image: package-ci/win10:v4
flavor: b1.large
variables:
UPMCI_ENABLE_PACKAGE_SIGNING: 1
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 --dry-run --package-path com.unity.postprocessing
artifacts:
artifacts:
paths:
- "upm-ci~/packages/*.tgz"
dependencies:
- .yamato/_postprocessing_publish.yml#{{ name }}_pack
{% for editor in test_editors %}
{% for platform in test_platforms %}
- .yamato/_postprocessing_publish.yml#{{ name }}_test_{{ platform.name }}_{{ editor }}
{% endfor %}
{% endfor %}