chore: Add CI to test minimal project with different versions of transport (#2190)
chore: add ci to test minimal project with different versions of transport
This commit is contained in:
Родитель
813c3dc196
Коммит
43218a390f
|
@ -18,6 +18,17 @@ run_all_tests:
|
|||
- .yamato/project-tests.yml#test_{{ project.name }}_{{ editor }}_{{ platform.name }}
|
||||
{% endif -%}
|
||||
{% endfor -%}
|
||||
|
||||
## Test minimal project with different versions of dependencies
|
||||
{% if project.name == "minimalproject" -%}
|
||||
{% for dependency in dependencies -%}
|
||||
{% for depeditor in dependency.test_editors -%}
|
||||
{% if depeditor != "trunk" -%}
|
||||
- .yamato/package-tests.yml#test_compatibility_{{ project.name }}_{{ project.packages.first.name }}_with_{{ dependency.name }}@{{ dependency.version }}_{{ depeditor }}_{{ platform.name }}
|
||||
{% endif -%}
|
||||
{% endfor -%}
|
||||
{% endfor -%}
|
||||
{% endif -%}
|
||||
{% endfor -%}
|
||||
{% endfor -%}
|
||||
|
||||
|
@ -34,6 +45,17 @@ run_all_tests_trunk:
|
|||
- .yamato/project-tests.yml#test_{{ project.name }}_{{ editor }}_{{ platform.name }}
|
||||
{% endif -%}
|
||||
{% endfor -%}
|
||||
|
||||
## Test minimal project with different versions of dependencies on trunk
|
||||
{% if project.name == "minimalproject" -%}
|
||||
{% for dependency in dependencies -%}
|
||||
{% for depeditor in dependency.test_editors -%}
|
||||
{% if depeditor == "trunk" -%}
|
||||
- .yamato/package-tests.yml#test_compatibility_{{ project.name }}_{{ project.packages.first.name }}_with_{{ dependency.name }}@{{ dependency.version }}_{{ depeditor }}_{{ platform.name }}
|
||||
{% endif -%}
|
||||
{% endfor -%}
|
||||
{% endfor -%}
|
||||
{% endif -%}
|
||||
{% endfor -%}
|
||||
{% endfor -%}
|
||||
|
||||
|
@ -63,6 +85,22 @@ all_package_tests:
|
|||
{% endfor -%}
|
||||
{% endfor -%}
|
||||
|
||||
# Test minimal project with different versions of dependencies
|
||||
all_compatibility_tests:
|
||||
name: Run All Compatibility Tests
|
||||
dependencies:
|
||||
{% for platform in test_platforms -%}
|
||||
{% for project in projects -%}
|
||||
{% if project.name == "minimalproject" -%}
|
||||
{% for dependency in dependencies -%}
|
||||
{% for editor in dependency.test_editors -%}
|
||||
- .yamato/package-tests.yml#test_compatibility_{{ project.name }}_{{ project.packages.first.name }}_with_{{ dependency.name }}@{{ dependency.version }}_{{ editor }}_{{ platform.name }}
|
||||
{% endfor -%}
|
||||
{% endfor -%}
|
||||
{% endif -%}
|
||||
{% endfor -%}
|
||||
{% endfor -%}
|
||||
|
||||
all_singlenode_multiprocess_tests:
|
||||
name: Run All Multiprocess Tests - Single Node
|
||||
dependencies:
|
||||
|
|
|
@ -27,4 +27,31 @@ test_{{project.name}}_{{ package.name }}_{{ editor }}_{{ platform.name }}:
|
|||
{% endfor -%}
|
||||
{% endfor -%}
|
||||
{% endfor -%}
|
||||
{% endfor -%}
|
||||
|
||||
# Test minimal project with different versions of dependencies
|
||||
{% for project in projects -%}
|
||||
{% if project.name == "minimalproject" -%}
|
||||
{% for dependency in dependencies -%}
|
||||
{% for editor in dependency.test_editors -%}
|
||||
{% for platform in test_platforms -%}
|
||||
test_compatibility_{{project.name}}_{{ project.packages.first.name }}_with_{{ dependency.name }}@{{ dependency.version }}_{{ editor }}_{{ platform.name }}:
|
||||
name : {{ project.name }} - {{ project.packages.first.name }} with {{ dependency.name }}@{{ dependency.version }} - {{ editor }} 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 == "ubuntu" %}DISPLAY=:0 {% endif %}upm-ci project test -u {{ editor }} --type project-tests --project-path {{ project.name }} --package-filter {{ project.packages.first.name }}
|
||||
artifacts:
|
||||
logs:
|
||||
paths:
|
||||
- "upm-ci~/test-results/**/*"
|
||||
dependencies:
|
||||
- .yamato/project-pack.yml#pack_{{ project.name }}_{{ dependency.name }}@{{ dependency.version }}
|
||||
{% endfor -%}
|
||||
{% endfor -%}
|
||||
{% endfor -%}
|
||||
{% endif -%}
|
||||
{% endfor -%}
|
|
@ -14,4 +14,31 @@ pack_{{ project.name }}:
|
|||
packages:
|
||||
paths:
|
||||
- "upm-ci~/packages/**/*"
|
||||
{% endfor -%}
|
||||
|
||||
# Pack minimal project with different versions of dependencies
|
||||
{% for project in projects -%}
|
||||
{% if project.name == "minimalproject" -%}
|
||||
{% for dependency in dependencies -%}
|
||||
pack_{{ project.name }}_{{ dependency.name }}@{{ dependency.version }}:
|
||||
name: Pack {{ project.name }} with {{ dependency.name }}@{{ dependency.version }}
|
||||
agent:
|
||||
type: Unity::VM
|
||||
image: package-ci/ubuntu:stable
|
||||
flavor: b1.small
|
||||
commands:
|
||||
- npm install upm-ci-utils@stable -g --registry https://artifactory.prd.cds.internal.unity3d.com/artifactory/api/npm/upm-npm
|
||||
- curl -L https://artifactory.prd.it.unity3d.com/artifactory/api/gpg/key/public | sudo apt-key add -
|
||||
- sudo sh -c "echo 'deb https://artifactory.prd.it.unity3d.com/artifactory/unity-apt-local bionic main' > /etc/apt/sources.list.d/unity.list"
|
||||
- sudo apt update
|
||||
- sudo apt install -y unity-config
|
||||
- unity-config settings project-path {{ project.path }}
|
||||
- unity-config project add dependency {{ dependency.name }}@{{ dependency.version }}
|
||||
- upm-ci project pack --project-path {{ project.path }}
|
||||
artifacts:
|
||||
packages:
|
||||
paths:
|
||||
- "upm-ci~/packages/**/*"
|
||||
{% endfor -%}
|
||||
{% endif -%}
|
||||
{% endfor -%}
|
|
@ -66,6 +66,14 @@ projects:
|
|||
- 2022.2
|
||||
- trunk
|
||||
|
||||
# Package dependencies
|
||||
dependencies:
|
||||
- name: com.unity.transport
|
||||
version: 2.0.0-exp.6
|
||||
test_editors:
|
||||
- 2022.2
|
||||
- trunk
|
||||
|
||||
# Scripting backends used by Standalone Playmode Tests
|
||||
scripting_backends:
|
||||
- mono
|
||||
|
|
Загрузка…
Ссылка в новой задаче