Skip to content

Commit c188169

Browse files
committed
Added models considerations to CI configurations
1 parent 0bb5574 commit c188169

11 files changed

+38
-5
lines changed

.yamato/code-coverage.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ code_coverage_{{ platform.name }}_{{ editor }}:
3333
type: {{ platform.type }}
3434
image: {{ platform.image }}
3535
flavor: {{ platform.flavor }}
36+
{% if platform.model %}
37+
model: {{ platform.model }} # This is set only in platforms where we want non-default model to use (more information in project.metafile)
38+
{% endif %}
3639
commands:
3740
- unity-downloader-cli --fast --wait -u {{ editor }} -c Editor
3841
- upm-pvp create-test-project test-project --packages "upm-ci~/packages/*.tgz" --unity .Editor

.yamato/console-standalone-test.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,9 @@ console_standalone_build_{{ project.name }}_{{ platform.name }}_{{ editor }}:
4646
type: {{ platform.type }}
4747
image: {{ platform.image }}
4848
flavor: {{ platform.flavor }}
49+
{% if platform.model %}
50+
model: {{ platform.model }} # This is set only in platforms where we want non-default model to use (more information in project.metafile)
51+
{% endif %}
4952
commands:
5053
- unity-downloader-cli --fast --wait -u {{ editor }} -c Editor -c il2cpp -c {{ platform.name }}
5154
- UnifiedTestRunner --testproject={{ project.path }} --architecture={% if platform.name == "switch" %}arm64{% else %}x64{% endif %} --scripting-backend=il2cpp --suite=playmode --platform={{ platform.standalone }} --editor-location=.Editor --artifacts-path=artifacts --player-save-path=build/players --testfilter="Unity.Netcode.RuntimeTests.*" --extra-editor-arg=-batchmode --extra-editor-arg=-nographics --reruncount=1 --clean-library-on-rerun --build-only --timeout=1800
@@ -83,7 +86,7 @@ console_standalone_test_{{ project.name }}_{{ platform.name }}_{{ editor }}:
8386
image: {{ platform.image }}
8487
flavor: {{ platform.flavor }}
8588
{% if platform.model %}
86-
model: {{ platform.model }}
89+
model: {{ platform.model }} # This is set only in platforms where we want non-default model to use (more information in project.metafile)
8790
{% endif %}
8891
commands:
8992
- unity-downloader-cli --fast --wait -u {{ editor }} -c Editor -c il2cpp -c {{ platform.name }}

.yamato/mobile-standalone-test.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,12 @@
4242
mobile_standalone_build_{{ project.name }}_{{ platform.name }}_{{ editor }}:
4343
name: Build {{ project.name }} - [{{ platform.name }}, {{ editor }}, il2cpp]
4444
agent:
45-
type: {{ platform.type }}
46-
image: {{ platform.image }}
47-
flavor: {{ platform.flavor }}
45+
type: {{ platform.type }}
46+
image: {{ platform.image }}
47+
flavor: {{ platform.flavor }}
48+
{% if platform.model %}
49+
model: {{ platform.model }} # This is set only in platforms where we want non-default model to use (more information in project.metafile)
50+
{% endif %}
4851
commands:
4952
- unity-downloader-cli -u {{ editor }} -c Editor -c il2cpp {% if platform.base == "mac" %} -c ios {% else %} -c android {% endif %} --wait
5053
- UnifiedTestRunner --suite=playmode --platform={{ platform.standalone }} --testproject={{ project.path }} --architecture={{ platform.architecture }} --scripting-backend=il2cpp --editor-location=.Editor --artifacts-path=artifacts --testfilter="Unity.Netcode.RuntimeTests.*" --player-save-path=build/players --extra-editor-arg=-batchmode --extra-editor-arg=-nographics --reruncount=1 --clean-library-on-rerun --build-only --timeout=1800
@@ -71,7 +74,7 @@ mobile_standalone_test_{{ project.name }}_{{ platform.name }}_{{ editor }}:
7174
image: {{ platform.image }}
7275
flavor: {{ platform.flavor }}
7376
{% if platform.model %}
74-
model: {{ platform.model }}
77+
model: {{ platform.model }} # This is set only in platforms where we want non-default model to use (more information in project.metafile)
7578
{% endif %}
7679
commands:
7780
# Installing editor. We still need the editor to run tests on standalone build and for that the Editor is required

.yamato/package-pack.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ package_pack_-_ngo_{{ platform.name }}:
3030
type: {{ platform.type }}
3131
image: {{ platform.image }}
3232
flavor: {{ platform.flavor }}
33+
{% if platform.model %}
34+
model: {{ platform.model }} # This is set only in platforms where we want non-default model to use (more information in project.metafile)
35+
{% endif %}
3336
timeout: 0.25
3437
variables:
3538
XRAY_PROFILE: "supported ./pvpExceptions.json"

.yamato/package-tests.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ package_test_-_ngo_{{ editor }}_{{ platform.name }}:
3232
type: {{ platform.type }}
3333
image: {{ platform.image }}
3434
flavor: {{ platform.flavor }}
35+
{% if platform.model %}
36+
model: {{ platform.model }} # This is set only in platforms where we want non-default model to use (more information in project.metafile)
37+
{% endif %}
3538
variables:
3639
XRAY_PROFILE: "supported ./pvpExceptions.json"
3740
UNITY_EXT_LOGGING: 1

.yamato/performance-tests.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ performance_editor_tests_-_NGO_{{ platform.name }}_{{ editor }}_no_data_reportin
3131
type: {{ platform.type }}
3232
image: {{ platform.image }}
3333
flavor: {{ platform.flavor }}
34+
{% if platform.model %}
35+
model: {{ platform.model }} # This is set only in platforms where we want non-default model to use (more information in project.metafile)
36+
{% endif %}
3437
commands:
3538
- unity-downloader-cli --fast --wait -u {{ editor }} -c Editor # Installing basic editor
3639
- UnifiedTestRunner --suite=editor --suite=playmode --testproject={{ project.path }} --editor-location=.Editor --timeout=3600 --artifacts-path=artifacts --extra-editor-arg=-assemblyNames --extra-editor-arg=Unity.NetCode.* --extra-editor-arg=-testCategory --extra-editor-arg=Performance --extra-editor-arg=-enablePackageManagerTraces --reruncount=1 --clean-library-on-rerun --dontreportperformancedata

.yamato/project-pack.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ project_pack_-_{{ project.name }}_{{ platform.name }}:
2929
type: {{ platform.type }}
3030
image: {{ platform.image }}
3131
flavor: {{ platform.flavor }}
32+
{% if platform.model %}
33+
model: {{ platform.model }} # This is set only in platforms where we want non-default model to use (more information in project.metafile)
34+
{% endif %}
3235
commands:
3336
- npm install upm-ci-utils@stable -g --registry https://artifactory.prd.cds.internal.unity3d.com/artifactory/api/npm/upm-npm # upm-ci is not preinstalled on the image so we need to download it
3437
- upm-ci project pack --project-path {{ project.path }}

.yamato/project-standards.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@ standards_{{ platform.name }}_{{ project.name }}_{{ editor }}:
3636
type: {{ platform.type }}
3737
image: {{ platform.image }}
3838
flavor: {{ platform.flavor }}
39+
{% if platform.model %}
40+
model: {{ platform.model }} # This is set only in platforms where we want non-default model to use (more information in project.metafile)
41+
{% endif %}
3942
commands:
4043
# .NET environment setup. Ensures required .NET SDK and formatting tools are available
4144
- dotnet --version

.yamato/project-tests.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@ test_{{ project.name }}_{{ platform.name }}_{{ editor }}:
3434
type: {{ platform.type }}
3535
image: {{ platform.image }}
3636
flavor: {{ platform.flavor }}
37+
{% if platform.model %}
38+
model: {{ platform.model }} # This is set only in platforms where we want non-default model to use (more information in project.metafile)
39+
{% endif %}
3740
commands:
3841
- npm install upm-ci-utils@stable -g --registry https://artifactory.prd.cds.internal.unity3d.com/artifactory/api/npm/upm-npm # upm-ci is not preinstalled on the image so we need to download it
3942
- unity-downloader-cli --fast --wait -u {{ editor }} -c Editor # Installing basic editor for tests execution

.yamato/project-updated-dependencies-test.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ updated-dependencies_{{ project.name }}_NGO_{{ platform.name }}_{{ editor }}:
3131
type: {{ platform.type }}
3232
image: {{ platform.image }}
3333
flavor: {{ platform.flavor }}
34+
{% if platform.model %}
35+
model: {{ platform.model }} # This is set only in platforms where we want non-default model to use (more information in project.metafile)
36+
{% endif %}
3437
commands:
3538
- npm install upm-ci-utils@stable -g --registry https://artifactory.prd.cds.internal.unity3d.com/artifactory/api/npm/upm-npm # upm-ci is not preinstalled on the image so we need to download it
3639
- upm-ci project test -u {{ editor }} --project-path {{ project.path }} --type updated-dependencies-tests --package-filter com.unity.netcode.gameobjects

0 commit comments

Comments
 (0)