Skip to content

Commit 001934e

Browse files
committed
Added models considerations to CI configurations
1 parent 5ef17a1 commit 001934e

11 files changed

+35
-2
lines changed

.yamato/code-coverage.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@ code_coverage_{{ 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
- unity-downloader-cli --fast --wait -u {{ editor }} -c Editor
3942
- 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: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,9 @@ mobile_standalone_build_{{ project.name }}_{{ platform.name }}_{{ editor }}:
4545
type: {{ platform.type }}
4646
image: {{ platform.image }}
4747
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 --fast --wait -u {{ editor }} -c Editor -c il2cpp {% if platform.base == "mac" %} -c ios {% else %} -c android {% endif %}
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 -u {{ editor }} -c Editor --wait # 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
@@ -37,6 +37,9 @@ standards_{{ platform.name }}_{{ project.name }}_{{ editor }}:
3737
type: {{ platform.type }}
3838
image: {{ platform.image }}
3939
flavor: {{ platform.flavor }}
40+
{% if platform.model %}
41+
model: {{ platform.model }} # This is set only in platforms where we want non-default model to use (more information in project.metafile)
42+
{% endif %}
4043
commands:
4144
# .NET environment setup. Ensures required .NET SDK and formatting tools are available
4245
- 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)