Skip to content

Commit dec5e88

Browse files
authored
Merge pull request #8070 from Unity-Technologies/templates/prepare-hdrpblank-for-trunk
[Templates] com.unity.template.hdrp-blank Prep for Trunk
2 parents 650304f + 255a988 commit dec5e88

File tree

13 files changed

+1199
-162
lines changed

13 files changed

+1199
-162
lines changed
Lines changed: 103 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,103 @@
1+
target_editor:
2+
version: 2023.3
3+
test_editors:
4+
- version: trunk
5+
test_platforms:
6+
- name: win
7+
type: Unity::VM
8+
image: package-ci/win10:v4
9+
flavor: b1.large
10+
- name: mac
11+
type: Unity::VM::osx
12+
image: package-ci/macos-13:v4
13+
flavor: m1.mac
14+
#- name: ubuntu
15+
# type: Unity::VM
16+
# image: package-ci/ubuntu:stable
17+
# flavor: b1.large
18+
# Use if Linux instance with GPU required
19+
#- name: centos
20+
# type: Unity::VM::GPU
21+
# image: package-ci/centos:stable
22+
# flavor: b1.large
23+
---
24+
25+
pack:
26+
name: Pack
27+
agent:
28+
type: Unity::VM
29+
image: package-ci/ubuntu:stable
30+
flavor: b1.large
31+
commands:
32+
- npm install upm-ci-utils@stable -g --registry https://artifactory.prd.cds.internal.unity3d.com/artifactory/api/npm/upm-npm
33+
- upm-ci template pack
34+
artifacts:
35+
packages:
36+
paths:
37+
- "upm-ci~/**/*"
38+
39+
{% for editor in test_editors %}
40+
{% for platform in test_platforms %}
41+
test_{{ platform.name }}_{{ editor.version }}:
42+
name : Test {{ editor.version }} on {{ platform.name }}
43+
agent:
44+
type: {{ platform.type }}
45+
image: {{ platform.image }}
46+
flavor: {{ platform.flavor}}
47+
commands:
48+
- npm install upm-ci-utils@stable -g --registry https://artifactory.prd.cds.internal.unity3d.com/artifactory/api/npm/upm-npm
49+
- {% if platform.name == "centos" %}DISPLAY=:0 {% endif %}upm-ci template test -u {{ editor.version }}
50+
artifacts:
51+
logs:
52+
paths:
53+
- "upm-ci~/test-results/**/*"
54+
dependencies:
55+
- .yamato/upm-ci.yml#pack
56+
{% endfor %}
57+
{% endfor %}
58+
59+
test_trigger:
60+
name: Tests Trigger
61+
triggers:
62+
branches:
63+
only:
64+
- "master"
65+
- "dev"
66+
- "/staging-.*/"
67+
pull_requests:
68+
- targets:
69+
only:
70+
- "/.*/"
71+
dependencies:
72+
- .yamato/upm-ci.yml#pack
73+
{% for editor in test_editors %}
74+
{% for platform in test_platforms %}
75+
- .yamato/upm-ci.yml#test_{{platform.name}}_{{editor.version}}
76+
{% endfor %}
77+
{% endfor %}
78+
79+
publish:
80+
name: Publish to Internal Registry
81+
agent:
82+
type: Unity::VM
83+
image: package-ci/win10:v4
84+
flavor: b1.large
85+
commands:
86+
- npm install upm-ci-utils@stable -g --registry https://artifactory.prd.cds.internal.unity3d.com/artifactory/api/npm/upm-npm
87+
- upm-ci template publish
88+
triggers:
89+
tags:
90+
only:
91+
- /^(r|R)(c|C)-\d+\.\d+\.\d+(-preview(\.\d+)?)?$/
92+
artifacts:
93+
packages:
94+
paths:
95+
- "upm-ci~/packages/**/*"
96+
- "upm-ci~/templates/*.tgz"
97+
dependencies:
98+
- .yamato/upm-ci.yml#pack
99+
{% for editor in test_editors %}
100+
{% for platform in test_platforms %}
101+
- .yamato/upm-ci.yml#test_{{ platform.name }}_{{ editor.version }}
102+
{% endfor %}
103+
{% endfor %}

0 commit comments

Comments
 (0)