Skip to content

Commit da2dcf4

Browse files
romainf-unityGitHub Enterprise
authored and
GitHub Enterprise
committed
Merge pull request #5 from unity/yamato-config
[yamato] New templated config
2 parents a729c9f + e808dcb commit da2dcf4

File tree

1 file changed

+60
-25
lines changed

1 file changed

+60
-25
lines changed

.yamato/build.yml

Lines changed: 60 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,60 @@
1-
name: Build and Test
2-
agent:
3-
type: Unity::VM
4-
image: packages/windows:latest
5-
flavor: m1.large
6-
name: Validate a Package in CI
7-
commands:
8-
- npm install upm-ci-utils -g --registry https://api.bintray.com/npm/unity/unity-npm
9-
# Add your custom build commands here
10-
- upm-ci package pack --package-path .
11-
- upm-ci package test --editor-revision 445af4d85bb46baa615b469ca3cca83ec8892e78 --package-path .
12-
triggers:
13-
branches:
14-
only:
15-
- master
16-
tags:
17-
only:
18-
- /(p|P)ublish/
19-
artifacts:
20-
Package.zip:
21-
paths:
22-
- "automation/packages/*.tgz"
23-
UTR_Output.zip:
24-
paths:
25-
- "utr_output/**/*"
1+
editors:
2+
- version: 2019.1
3+
platforms:
4+
- name: win
5+
type: Unity::VM
6+
image: package-ci/win10:latest
7+
flavor: m1.large
8+
- name: mac
9+
type: Unity::VM::osx
10+
image: buildfarm/mac:stable
11+
flavor: m1.mac
12+
---
13+
{% for editor in editors %}
14+
{% for platform in platforms %}
15+
{{ platform.name }}_{{ editor.version }}:
16+
name : Build and Test version {{ editor.version }} on {{ platform.name }}
17+
agent:
18+
type: {{ platform.type }}
19+
image: {{ platform.image }}
20+
flavor: {{ platform.flavor}}
21+
commands:
22+
- npm install upm-ci-utils -g --registry https://api.bintray.com/npm/unity/unity-npm
23+
- upm-ci package pack
24+
- upm-ci package test --unity-version {{ editor.version }}
25+
triggers:
26+
branches:
27+
only:
28+
- master
29+
artifacts:
30+
UTR_Output.zip:
31+
paths:
32+
- "utr_output/**/*"
33+
{% endfor %}
34+
{% endfor %}
35+
36+
run_preview_verified_staging:
37+
name: Preview and Verified Packages to Staging
38+
agent:
39+
type: Unity::VM
40+
image: package-ci/win10:latest
41+
flavor: m1.large
42+
name: Runner
43+
commands:
44+
- npm install upm-ci-utils -g --registry https://api.bintray.com/npm/unity/unity-npm
45+
- upm-ci package pack
46+
- upm-ci package publish --registry staging
47+
triggers:
48+
tags:
49+
only:
50+
- /^(v|V)[0-9].[0-9].[0-9]/
51+
artifacts:
52+
Package.zip:
53+
paths:
54+
- "automation/package/*.tgz"
55+
dependencies:
56+
{% for editor in editors %}
57+
{% for platform in platforms %}
58+
- .yamato/build.yml#{{ platform.name }}_{{ editor.version }}
59+
{% endfor %}
60+
{% endfor %}

0 commit comments

Comments
 (0)