-
Notifications
You must be signed in to change notification settings - Fork 814
/
Copy pathpostprocessing_publish.yml
118 lines (111 loc) · 3.45 KB
/
postprocessing_publish.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
# From https://github.com/Unity-Technologies/PostProcessing/blob/v2/.yamato/upm-ci.yml
name: postprocessing
test_editors:
- trunk
- 2021.1
- 2020.2
- 2019.4
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 }}_pack:
name: {{ name }} - Pack
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 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/_tmp_postprocessing.yml#{{ name }}_pack
{% endfor %}
{% endfor %}
{{ name }}_test_trigger:
name: {{ name }} - Tests Trigger
agent:
type: Unity::VM
image: package-ci/win10:stable
flavor: b1.large
commands:
- dir
artifacts:
logs:
paths:
- "upm-ci~/test-results/**/*"
packages:
paths:
- "upm-ci~/packages/**/*"
dependencies:
- .yamato/_tmp_postprocessing.yml#{{ name }}_pack
{% for editor in test_editors %}
{% for platform in test_platforms %}
- .yamato/_tmp_postprocessing.yml#{{ name }}_test_{{platform.name}}_{{editor}}
{% endfor %}
{% endfor %}
{{ name }}_publish:
name: {{ 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.postprocessing
artifacts:
artifacts:
paths:
- "upm-ci~/packages/*.tgz"
dependencies:
- .yamato/_tmp_postprocessing.yml#{{ name }}_pack
{% for editor in test_editors %}
{% for platform in test_platforms %}
- .yamato/_tmp_postprocessing.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: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 --dry-run --package-path com.unity.postprocessing
artifacts:
artifacts:
paths:
- "upm-ci~/packages/*.tgz"
dependencies:
- .yamato/_tmp_postprocessing.yml#{{ name }}_pack
{% for editor in test_editors %}
{% for platform in test_platforms %}
- .yamato/_tmp_postprocessing.yml#{{ name }}_test_{{ platform.name }}_{{ editor }}
{% endfor %}
{% endfor %}