@@ -2,15 +2,23 @@ test_editors:
2
2
- version : 2018.4
3
3
# 2018.4 doesn't support code-coverage
4
4
enableCodeCoverage : !!bool false
5
+ # We want some scene tests to run in the DevProject, but packages there only support 2019+
6
+ testProject : Project
5
7
- version : 2019.4
6
8
enableCodeCoverage : !!bool true
9
+ testProject : DevProject
7
10
- version : 2020.1
8
11
enableCodeCoverage : !!bool true
12
+ testProject : DevProject
9
13
- version : 2020.2
10
14
enableCodeCoverage : !!bool true
15
+ testProject : DevProject
16
+
11
17
trunk_editor :
12
18
- version : trunk
13
19
enableCodeCoverage : !!bool true
20
+ testProject : DevProject
21
+
14
22
test_platforms :
15
23
- name : win
16
24
type : Unity::VM
@@ -24,6 +32,7 @@ test_platforms:
24
32
type : Unity::VM
25
33
image : package-ci/ubuntu:stable
26
34
flavor : b1.medium
35
+
27
36
packages :
28
37
- name : com.unity.ml-agents
29
38
assembly : Unity.ML-Agents
@@ -70,7 +79,7 @@ test_{{ package.name }}_{{ platform.name }}_{{ editor.version }}:
70
79
flavor : {{ platform.flavor}}
71
80
commands :
72
81
- npm install upm-ci-utils@stable -g --registry https://artifactory.prd.cds.internal.unity3d.com/artifactory/api/npm/upm-npm
73
- - upm-ci project test -u {{ editor.version }} --project-path Project --package-filter {{ package.name }} {{ coverageOptions }} --extra-utr-arg "reruncount=2"
82
+ - upm-ci project test -u {{ editor.version }} --project-path {{ editor.testProject }} --package-filter {{ package.name }} {{ coverageOptions }} --extra-utr-arg "reruncount=2"
74
83
{% if editor.enableCodeCoverage %}
75
84
- python3 ml-agents/tests/yamato/check_coverage_percent.py upm-ci~/test-results/ {{ package.minCoveragePct }}
76
85
{% endif %}
@@ -88,6 +97,7 @@ test_{{ package.name }}_{{ platform.name }}_{{ editor.version }}:
88
97
pull_request.target match "release.+") AND
89
98
NOT pull_request.draft AND
90
99
(pull_request.changes.any match "com.unity.ml-agents/**" OR
100
+ pull_request.changes.any match " {{ editor.testProject }}/**" OR
91
101
{% if package.name == "com.unity.ml-agents.extensions" %}
92
102
pull_request.changes.any match "com.unity.ml-agents.extensions/**" OR
93
103
{% endif %}
@@ -116,7 +126,7 @@ test_{{ package.name }}_{{ platform.name }}_trunk:
116
126
- python -m pip install unity-downloader-cli --index-url https://artifactory.prd.it.unity3d.com/artifactory/api/pypi/pypi/simple --upgrade
117
127
- unity-downloader-cli -u trunk -c editor --wait --fast
118
128
- npm install upm-ci-utils@stable -g --registry https://artifactory.prd.cds.internal.unity3d.com/artifactory/api/npm/upm-npm
119
- - upm-ci project test -u {{ editor.version }} --project-path Project --package-filter {{ package.name }} {{ coverageOptions }} --extra-utr-arg "reruncount=2"
129
+ - upm-ci project test -u {{ editor.version }} --project-path {{ editor.testProject }} --package-filter {{ package.name }} {{ coverageOptions }} --extra-utr-arg "reruncount=2"
120
130
{% if editor.enableCodeCoverage %}
121
131
- python3 ml-agents/tests/yamato/check_coverage_percent.py upm-ci~/test-results/ {{ package.minCoveragePct }}
122
132
{% endif %}
0 commit comments