Skip to content

Commit

Permalink
add editor test version
Browse files Browse the repository at this point in the history
  • Loading branch information
jasons-unity committed Sep 8, 2020
1 parent 056fe5e commit b118766
Showing 1 changed file with 35 additions and 5 deletions.
40 changes: 35 additions & 5 deletions .yamato/test.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
test_editors:
blocking_test_editors:
- version: 2019.1.14f1
nonblocking_test_editors:
- version: 2019.3.0f6
- version: 2019.4
- version: 2020.1
- version: 2020.2
test_platforms:
- name: win
type: Unity::VM
Expand All @@ -11,7 +16,7 @@ test_platforms:
flavor: m1.mac
---

{% for editor in test_editors %}
{% for editor in blocking_test_editors %}
{% for platform in test_platforms %}
test_{{ platform.name }}_{{ editor.version }}:
name : Test {{ editor.version }} on {{ platform.name }}
Expand All @@ -21,7 +26,27 @@ test_{{ platform.name }}_{{ editor.version }}:
flavor: {{ platform.flavor}}
commands:
- npm install upm-ci-utils@stable -g --registry https://artifactory.prd.cds.internal.unity3d.com/artifactory/api/npm/upm-npm
- {% if platform.name == "centos" %}DISPLAY=:0 {% endif %}upm-ci package test -u {{ editor.version }} --package-path . --type package-tests
- {% if platform.name == "centos" %}DISPLAY=:0 {% endif %}upm-ci package test -u {{ editor.version }} --package-path . --type package-tests --enable-code-coverage
artifacts:
logs:
paths:
- "upm-ci~/test-results/**/*"
dependencies:
- .yamato/pack.yml#pack
{% endfor %}
{% endfor %}

{% for editor in nonblocking_test_editors %}
{% for platform in test_platforms %}
test_{{ platform.name }}_{{ editor.version }}:
name : Test {{ editor.version }} on {{ platform.name }}
agent:
type: {{ platform.type }}
image: {{ platform.image }}
flavor: {{ platform.flavor}}
commands:
- npm install upm-ci-utils@stable -g --registry https://artifactory.prd.cds.internal.unity3d.com/artifactory/api/npm/upm-npm
- {% if platform.name == "centos" %}DISPLAY=:0 {% endif %}upm-ci package test -u {{ editor.version }} --package-path . --type package-tests --enable-code-coverage
artifacts:
logs:
paths:
Expand All @@ -33,7 +58,7 @@ test_{{ platform.name }}_{{ editor.version }}:

# Validate the package on each editor version and each platform
# Validation only occurs in editmode.
{% for editor in test_editors %}
{% for editor in blocking_test_editors %}
{% for platform in test_platforms %}
validate_{{ platform.name }}_{{ editor.version }}:
name : Validate {{ editor.version }} on {{ platform.name }}
Expand Down Expand Up @@ -65,9 +90,14 @@ test_trigger:
- "/.*/"
dependencies:
- .yamato/pack.yml#pack
{% for editor in test_editors %}
{% for editor in blocking_test_editors %}
{% for platform in test_platforms %}
- .yamato/test.yml#test_{{platform.name}}_{{editor.version}}
- .yamato/test.yml#validate_{{platform.name}}_{{editor.version}}
{% endfor %}
{% endfor %}
{% for editor in nonblocking_test_editors %}
{% for platform in test_platforms %}
- .yamato/test.yml#test_{{platform.name}}_{{editor.version}}
{% endfor %}
{% endfor %}

0 comments on commit b118766

Please sign in to comment.