|
1 | | -yamato_name: uts2 |
2 | | -test_editors: |
3 | | - - version: 2021.3 |
4 | | -test_platforms: |
5 | | - - name: win |
6 | | - type: Unity::VM |
7 | | - image: package-ci/win10:v4 |
8 | | - flavor: b1.large |
9 | | - - name: mac |
10 | | - type: Unity::VM::osx |
11 | | - image: package-ci/macos-13:v4 |
12 | | - flavor: m1.mac |
| 1 | +{% metadata_file .yamato/UnityToonShader.metafile %} |
| 2 | + |
| 3 | +# |
| 4 | +# |
| 5 | +# |
| 6 | + |
13 | 7 | --- |
14 | | -pack: |
15 | | - name: Pack {{ yamato_name }} |
16 | | - agent: |
17 | | - type: Unity::VM |
18 | | - image: package-ci/ubuntu-22.04:v4 |
19 | | - flavor: b1.medium |
20 | | - commands: |
21 | | - - npm install upm-ci-utils@stable -g --registry https://artifactory.prd.cds.internal.unity3d.com/artifactory/api/npm/upm-npm |
22 | | - - upm-ci package pack --package-path com.unity.toonshader |
23 | | - artifacts: |
24 | | - {{ yamato_name }}_pack_artifacts: |
25 | | - paths: |
26 | | - - "upm-ci~/**/*" |
27 | 8 |
|
28 | | -{% for editor in test_editors %} |
29 | | -{% for platform in test_platforms %} |
30 | | -test_{{ platform.name }}_{{ editor.version }}: |
31 | | - name : Test {{ yamato_name }} using {{ editor.version }} on {{ platform.name }} |
| 9 | +publish: |
| 10 | + name: Publish {{ yamato_name }} to Internal Registry |
32 | 11 | agent: |
33 | | - type: {{ platform.type }} |
34 | | - image: {{ platform.image }} |
35 | | - flavor: {{ platform.flavor}} |
| 12 | + type: Unity::VM |
| 13 | + image: package-ci/win10:v4 |
| 14 | + flavor: b1.large |
36 | 15 | commands: |
37 | 16 | - npm install upm-ci-utils@stable -g --registry https://artifactory.prd.cds.internal.unity3d.com/artifactory/api/npm/upm-npm |
38 | | - - upm-ci package test --unity-version {{ editor.version }} --package-path com.unity.toonshader |
| 17 | + - upm-ci package publish --package-path com.unity.toonshader |
39 | 18 | triggers: |
40 | | - branches: |
| 19 | + tags: |
41 | 20 | only: |
42 | | - - "/.*/" |
| 21 | + - /^(r|R)(c|C)-\d+\.\d+\.\d+(-preview(\.\d+)?)?$/ |
43 | 22 | artifacts: |
44 | | - {{ yamato_name }}_test_results: |
| 23 | + {{ yamato_name }}_publish_artifacts: |
45 | 24 | paths: |
46 | | - - "upm-ci~/test-results/**/*" |
| 25 | + - "upm-ci~/packages/*.tgz" |
47 | 26 | dependencies: |
48 | | - - .yamato/upm-ci-{{ yamato_name }}.yml#pack |
49 | | -{% endfor %} |
50 | | -{% endfor %} |
| 27 | + - .yamato/{{ yamato_name }}-pack.yml#pack |
| 28 | + {% for editor in test_editors %} |
| 29 | + {% for platform in test_platforms %} |
| 30 | + - .yamato/{{ yamato_name }}-test-package.yml#test_{{ platform.name }}_{{ editor.version }} |
| 31 | + {% endfor %} |
| 32 | + {% endfor %} |
51 | 33 |
|
52 | | -publish: |
53 | | - name: Publish {{ yamato_name }} to Internal Registry |
| 34 | + |
| 35 | +publish_dry_run: |
| 36 | + name: Publish Dry Run {{ yamato_name }} to Internal Registry |
54 | 37 | agent: |
55 | 38 | type: Unity::VM |
56 | 39 | image: package-ci/win10:v4 |
57 | 40 | flavor: b1.large |
58 | 41 | commands: |
59 | 42 | - npm install upm-ci-utils@stable -g --registry https://artifactory.prd.cds.internal.unity3d.com/artifactory/api/npm/upm-npm |
60 | | - - upm-ci package publish --package-path com.unity.toonshader |
| 43 | + - upm-ci package publish --dry-run --package-path com.unity.toonshader |
61 | 44 | triggers: |
62 | 45 | tags: |
63 | 46 | only: |
64 | 47 | - /^(r|R)(c|C)-\d+\.\d+\.\d+(-preview(\.\d+)?)?$/ |
65 | 48 | artifacts: |
66 | | - {{ yamato_name }}_publish_artifacts: |
| 49 | + {{ yamato_name }}_publish_dry_run_artifacts: |
67 | 50 | paths: |
68 | 51 | - "upm-ci~/packages/*.tgz" |
69 | 52 | dependencies: |
70 | | - - .yamato/upm-ci-{{ yamato_name }}.yml#pack |
71 | | - {% for editor in test_editors %} |
72 | | - {% for platform in test_platforms %} |
73 | | - - .yamato/upm-ci-{{ yamato_name }}.yml#test_{{ platform.name }}_{{ editor.version }} |
| 53 | + - .yamato/{{ yamato_name }}-pack.yml#pack |
| 54 | + {% for test_config in test_configs %} |
| 55 | + {% for test_platform in test_config.test_platforms %} |
| 56 | + {% for step in test_platform.test_type.steps %} |
| 57 | + - .yamato/{{ yamato_name }}-test-package.yml#test_{{ test_platform.platform_type.name }}_{{ test_config.editor_version }}_{{step.name}} |
74 | 58 | {% endfor %} |
75 | 59 | {% endfor %} |
| 60 | + {% endfor %} |
| 61 | + |
76 | 62 |
|
77 | 63 | prerelease: |
78 | 64 | name: Create a prerelease {{ yamato_name }} |
@@ -117,34 +103,6 @@ prerelease: |
117 | 103 | echo "End" |
118 | 104 | |
119 | 105 | dependencies: |
120 | | - - .yamato/upm-ci-uts2.yml#publish |
121 | | - |
122 | | -publish_dry_run: |
123 | | - name: Publish Dry Run {{ yamato_name }} to Internal Registry |
124 | | - agent: |
125 | | - type: Unity::VM |
126 | | - image: package-ci/win10:v4 |
127 | | - flavor: b1.large |
128 | | - commands: |
129 | | - - npm install upm-ci-utils@stable -g --registry https://artifactory.prd.cds.internal.unity3d.com/artifactory/api/npm/upm-npm |
130 | | - - upm-ci package publish --dry-run --package-path com.unity.toonshader |
131 | | - triggers: |
132 | | - tags: |
133 | | - only: |
134 | | - - /^(r|R)(c|C)-\d+\.\d+\.\d+(-preview(\.\d+)?)?$/ |
135 | | - artifacts: |
136 | | - {{ yamato_name }}_publish_dry_run_artifacts: |
137 | | - paths: |
138 | | - - "upm-ci~/packages/*.tgz" |
139 | | - dependencies: |
140 | | - - .yamato/{{ yamato_name }}-pack.yml#pack |
141 | | - {% for test_config in test_configs %} |
142 | | - {% for test_platform in test_config.test_platforms %} |
143 | | - {% for step in test_platform.test_type.steps %} |
144 | | - - .yamato/{{ yamato_name }}-test.yml#test_{{ test_platform.platform_type.name }}_{{ test_config.editor_version }}_{{step.name}} |
145 | | - {% endfor %} |
146 | | - {% endfor %} |
147 | | - {% endfor %} |
148 | | - |
| 106 | + - .yamato/UnityToonShader-publish.yml#publish |
149 | 107 |
|
150 | 108 |
|
0 commit comments