Skip to content
This repository was archived by the owner on Nov 30, 2020. It is now read-only.

Commit 4e01e2e

Browse files
committed
Added CI config
1 parent 76e8b20 commit 4e01e2e

File tree

1 file changed

+97
-0
lines changed

1 file changed

+97
-0
lines changed

.yamato/upm-ci.yml

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

0 commit comments

Comments
 (0)