@@ -29,23 +29,20 @@ 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
35
32
---
36
33
37
34
all_package_tests :
38
35
name : Run All Combinations of Editors/Platforms Tests
39
36
dependencies :
40
37
{% for editor in test_editors %}
41
38
{% for platform in test_platforms %}
42
- - .yamato/com.unity.ml-agents-test.yml#test_com.unity.ml-agents_ {{ platform.name }}_{{ editor.version }}
39
+ - .yamato/com.unity.ml-agents-test.yml#test_ {{ platform.name }}_{{ editor.version }}
43
40
{% endfor %}
44
41
{% endfor %}
45
42
46
43
{% for editor in trunk_editor %}
47
44
{% for platform in test_platforms %}
48
- - .yamato/com.unity.ml-agents-test.yml#test_com.unity.ml-agents_ {{ platform.name }}_{{ editor.version }}
45
+ - .yamato/com.unity.ml-agents-test.yml#test_ {{ platform.name }}_{{ editor.version }}
49
46
{% endfor %}
50
47
{% endfor %}
51
48
triggers :
@@ -54,23 +51,18 @@ all_package_tests:
54
51
- branch : master
55
52
frequency : daily
56
53
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 }}
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 }}
62
58
agent :
63
59
type : {{ platform.type }}
64
60
image : {{ platform.image }}
65
61
flavor : {{ platform.flavor}}
66
62
commands :
67
63
- npm install upm-ci-utils@stable -g --registry https://artifactory.prd.cds.internal.unity3d.com/artifactory/api/npm/upm-npm
68
- - upm-ci project test -u {{ editor.version }} --project-path Project --type package-tests --package-filter {{ package.name }} {{ editor.coverageOptions }}
69
-
70
- {% if package.name == "com.unity.ml-agents" %}
71
- # TODO get coverage tests running for extensions too
64
+ - upm-ci package test -u {{ editor.version }} --package-path com.unity.ml-agents {{ editor.coverageOptions }}
72
65
- python ml-agents/tests/yamato/check_coverage_percent.py upm-ci~/test-results/ {{ editor.minCoveragePct }}
73
- {% endif %}
74
66
artifacts :
75
67
logs :
76
68
paths :
@@ -85,20 +77,15 @@ test_{{ package.name }}_{{ platform.name }}_{{ editor.version }}:
85
77
pull_request.target match "release.+") AND
86
78
NOT pull_request.draft AND
87
79
(pull_request.changes.any match "com.unity.ml-agents/**" OR
88
- {% if package.name == "com.unity.ml-agents.extensions" %}
89
- pull_request.changes.any match "com.unity.ml-agents.extensions/**" OR
90
- {% endif %}
91
80
pull_request.changes.any match ".yamato/com.unity.ml-agents-test.yml")
92
81
{% endif %}
93
- {% endfor %}
94
82
{% endfor %}
95
83
{% endfor %}
96
84
97
- {% for package in packages %}
98
- {% for editor in trunk_editor %}
99
- {% for platform in test_platforms %}
100
- test_{{ package.name }}_{{ platform.name }}_trunk :
101
- name : {{ package.name }} test {{ editor.version }} on {{ platform.name }}
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 }}
102
89
agent :
103
90
type : {{ platform.type }}
104
91
image : {{ platform.image }}
@@ -107,11 +94,8 @@ test_{{ package.name }}_{{ platform.name }}_trunk:
107
94
- python -m pip install unity-downloader-cli --extra-index-url https://artifactory.eu-cph-1.unityops.net/api/pypi/common-python/simple
108
95
- unity-downloader-cli -u trunk -c editor --wait --fast
109
96
- npm install upm-ci-utils@stable -g --registry https://artifactory.prd.cds.internal.unity3d.com/artifactory/api/npm/upm-npm
110
- - upm-ci project test -u {{ editor.version }} --project-path Project --type package-tests --package-filter {{ package.name }} {{ editor.coverageOptions }}
111
- {% if package.name == "com.unity.ml-agents" %}
112
- # TODO get coverage tests running for extensions too
97
+ - upm-ci package test -u {{ editor.version }} --package-path com.unity.ml-agents {{ editor.coverageOptions }}
113
98
- python ml-agents/tests/yamato/check_coverage_percent.py upm-ci~/test-results/ {{ editor.minCoveragePct }}
114
- {% endif %}
115
99
artifacts :
116
100
logs :
117
101
paths :
@@ -122,4 +106,3 @@ test_{{ package.name }}_{{ platform.name }}_trunk:
122
106
cancel_old_ci : true
123
107
{% endfor %}
124
108
{% endfor %}
125
- {% endfor %}
0 commit comments