@@ -26,37 +26,24 @@ editor_versions:
26
26
- version : " trunk"
27
27
---
28
28
29
-
30
- run_tests_on_mono :
31
- name : Tests NUnit
29
+ {% for platform in build_platforms %}
30
+ {% unless platform.name == "linux" %}
31
+ run_tests_on_mono_{{platform.name}} :
32
+ name : Tests NUnit on {{platform.name}}
33
+ agent :
34
+ name : {{platform.name}}
35
+ type : {{platform.type}}
36
+ image : {{platform.image}}
37
+ flavor : {{platform.flavor}}
32
38
commands :
39
+ {% if platform.name == "windows" %}
40
+ - choco install nuget.commandline
41
+ {% endif %}
33
42
- nuget restore src
34
43
- msbuild src/Unity.Mathematics.sln
35
44
- mono src/packages/NUnit.ConsoleRunner.3.9.0/tools/nunit3-console.exe src/Tests/bin/Debug/Unity.Mathematics.Tests.dll --process=single
36
- agent :
37
- name : mac
38
- type : Unity::VM::osx
39
- image : buildfarm/mac:latest
40
- flavor : m1.mac
41
-
42
-
43
- pack_package :
44
- name : Pack package
45
- agent :
46
- name : mac
47
- type : Unity::VM::osx
48
- image : buildfarm/mac:latest
49
- flavor : m1.mac
50
- commands :
51
- - npm install upm-ci-utils@stable --registry https://api.bintray.com/npm/unity/unity-npm -g
52
- - upm-ci package pack --package-path src/
53
- artifacts :
54
- packages :
55
- paths :
56
- - " upm-ci~/packages/**/*"
57
- dependencies :
58
- - .yamato/upm-ci.yml#run_tests_on_mono
59
-
45
+ {% endunless %}
46
+ {% endfor %}
60
47
61
48
validate_package_minimal :
62
49
name : Validate Package Linux Minimal
@@ -67,13 +54,18 @@ validate_package_minimal:
67
54
flavor : b1.large
68
55
commands :
69
56
- sudo npm install upm-ci-utils@stable --registry https://api.bintray.com/npm/unity/unity-npm -g
57
+ - DISPLAY=:0.0 upm-ci package pack --package-path src/
70
58
- DISPLAY=:0.0 upm-ci package test --package-path src/ --unity-version 2019.1
71
59
artifacts :
72
60
packages :
73
61
paths :
74
62
- " upm-ci~/packages/**/*"
75
63
dependencies :
76
- - .yamato/upm-ci.yml#pack_package
64
+ {% for platform in build_platforms %}
65
+ {% unless platform.name == "linux" %}
66
+ - .yamato/upm-ci.yml#run_tests_on_mono_{{platform.name}}
67
+ {% endunless %}
68
+ {% endfor %}
77
69
78
70
{% for platform in build_platforms %}
79
71
{% for editor in editor_versions %}
@@ -86,13 +78,21 @@ validate_package_{{platform.name}}_{{editor.version}}:
86
78
flavor : {{platform.flavor}}
87
79
commands :
88
80
- {{platform.npm_cmd}} install upm-ci-utils@stable --registry https://api.bintray.com/npm/unity/unity-npm -g
81
+ - {{platform.upm_cmd}} package pack --package-path src/
89
82
- {{platform.upm_cmd}} package test --package-path src/ --unity-version {{ editor.version }}
90
83
artifacts :
91
- packages :
84
+ packages_{{platform.name}}_{{editor.version}} :
92
85
paths :
93
86
- " upm-ci~/packages/**/*"
87
+ results_{{platform.name}}_{{editor.version}} :
88
+ paths :
89
+ - " upm-ci~/**/*"
94
90
dependencies :
95
- - .yamato/upm-ci.yml#pack_package
91
+ {% for platform in build_platforms %}
92
+ {% unless platform.name == "linux" %}
93
+ - .yamato/upm-ci.yml#run_tests_on_mono_{{platform.name}}
94
+ {% endunless %}
95
+ {% endfor %}
96
96
{% endfor %}
97
97
{% endfor %}
98
98
@@ -111,11 +111,7 @@ publish:
111
111
paths :
112
112
- " upm-ci~/packages/**/*"
113
113
dependencies :
114
- {% for platform in build_platforms %}
115
- {% for editor in editor_versions %}
116
- - .yamato/upm-ci.yml#validate_package_{{platform.name}}_{{editor.version}}
117
- {% endfor %}
118
- {% endfor %}
114
+ - .yamato/upm-ci.yml#validate_package_minimal
119
115
120
116
121
117
promote :
@@ -157,7 +153,7 @@ nightly_ci:
157
153
{% for editor in editor_versions %}
158
154
- .yamato/upm-ci.yml#validate_package_{{platform.name}}_{{editor.version}}
159
155
{% endfor %}
160
- {% endfor %}
156
+ {% endfor %}
161
157
162
158
163
159
commit_ci :
0 commit comments