@@ -29,6 +29,9 @@ test_platforms:
29
29
type : Unity::VM
30
30
image : package-ci/ubuntu:stable
31
31
flavor : b1.medium
32
+ packages :
33
+ - name : com.unity.ml-agents
34
+ - name : com.unity.ml-agents.extensions
32
35
---
33
36
34
37
all_package_tests :
@@ -51,24 +54,28 @@ all_package_tests:
51
54
- branch : master
52
55
frequency : daily
53
56
54
- {% for editor in test_editors %}
55
- {% for platform in test_platforms %}
56
- test_{{ platform.name }}_{{ editor.version }} :
57
- name : com.unity.ml-agents test {{ editor.version }} on {{ platform.name }}
57
+ {% for package in packages %}
58
+ {% for editor in test_editors %}
59
+ {% for platform in test_platforms %}
60
+ test_{{ package.name }}_{{ platform.name }}_{{ editor.version }} :
61
+ name : {{ package.name }} test {{ editor.version }} on {{ platform.name }}
58
62
agent :
59
63
type : {{ platform.type }}
60
64
image : {{ platform.image }}
61
65
flavor : {{ platform.flavor}}
62
66
commands :
63
67
- npm install upm-ci-utils@stable -g --registry https://artifactory.prd.cds.internal.unity3d.com/artifactory/api/npm/upm-npm
64
- - upm-ci package test -u {{ editor.version }} --package-path com.unity.ml-agents {{ editor.coverageOptions }}
68
+ - upm-ci package test -u {{ editor.version }} --package-path {{ package.name }} {{ editor.coverageOptions }}
69
+ {% if package.name == "com.unity.ml-agents" %}
70
+ # TODO get coverage tests running for extensions too
65
71
- python ml-agents/tests/yamato/check_coverage_percent.py upm-ci~/test-results/ {{ editor.minCoveragePct }}
72
+ {% endif %}
66
73
artifacts :
67
74
logs :
68
75
paths :
69
76
- " upm-ci~/test-results/**/*"
70
77
dependencies :
71
- - .yamato/com.unity.ml-agents-pack.yml#pack
78
+ - .yamato/com.unity.ml-agents-pack.yml#pack_{{ package.name }}
72
79
triggers :
73
80
cancel_old_ci : true
74
81
{% if platform.name == "mac" %}
@@ -77,15 +84,20 @@ test_{{ platform.name }}_{{ editor.version }}:
77
84
pull_request.target match "release.+") AND
78
85
NOT pull_request.draft AND
79
86
(pull_request.changes.any match "com.unity.ml-agents/**" OR
87
+ {% if package.name == "com.unity.ml-agents" %}
88
+ pull_request.changes.any match "com.unity.ml-agents.extensions/**" OR
89
+ {% endif %}
80
90
pull_request.changes.any match ".yamato/com.unity.ml-agents-test.yml")
81
91
{% endif %}
92
+ {% endfor %}
82
93
{% endfor %}
83
94
{% endfor %}
84
95
85
- {% for editor in trunk_editor %}
86
- {% for platform in test_platforms %}
87
- test_{{ platform.name }}_trunk :
88
- name : com.unity.ml-agents test {{ editor.version }} on {{ platform.name }}
96
+ {% for package in packages %}
97
+ {% for editor in trunk_editor %}
98
+ {% for platform in test_platforms %}
99
+ test_{{ package.name }}_{{ platform.name }}_trunk :
100
+ name : {{ package.name }} test {{ editor.version }} on {{ platform.name }}
89
101
agent :
90
102
type : {{ platform.type }}
91
103
image : {{ platform.image }}
@@ -94,15 +106,19 @@ test_{{ platform.name }}_trunk:
94
106
- python -m pip install unity-downloader-cli --extra-index-url https://artifactory.eu-cph-1.unityops.net/api/pypi/common-python/simple
95
107
- unity-downloader-cli -u trunk -c editor --wait --fast
96
108
- npm install upm-ci-utils@stable -g --registry https://artifactory.prd.cds.internal.unity3d.com/artifactory/api/npm/upm-npm
97
- - upm-ci package test -u {{ editor.version }} --package-path com.unity.ml-agents {{ editor.coverageOptions }}
109
+ - upm-ci package test -u {{ editor.version }} --package-path {{ package.name }} {{ editor.coverageOptions }}
110
+ {% if package.name == "com.unity.ml-agents" %}
111
+ # TODO get coverage tests running for extensions too
98
112
- python ml-agents/tests/yamato/check_coverage_percent.py upm-ci~/test-results/ {{ editor.minCoveragePct }}
113
+ {% endif %}
99
114
artifacts :
100
115
logs :
101
116
paths :
102
117
- " upm-ci~/test-results/**/*"
103
118
dependencies :
104
- - .yamato/com.unity.ml-agents-pack.yml#pack
119
+ - .yamato/com.unity.ml-agents-pack.yml#pack_{{ package.name }}
105
120
triggers :
106
121
cancel_old_ci : true
107
122
{% endfor %}
108
123
{% endfor %}
124
+ {% endfor %}
0 commit comments