Skip to content

Commit a5e1de8

Browse files
committed
Corrected linter and naming for standalone desktop and webgl
1 parent 25e0767 commit a5e1de8

File tree

3 files changed

+21
-47
lines changed

3 files changed

+21
-47
lines changed

.yamato/desktop-standalone-tests.yml

Lines changed: 7 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -32,32 +32,18 @@ desktop_standalone_tests_{{ project.name }}_{{ platform.name }}_{{ backend }}_{{
3232
# Build Player
3333
- |
3434
{% if platform.name == "win" %}
35-
utr.bat \
35+
utr.bat --suite=playmode --platform={{ platform.standalone }} --editor-location=.Editor --testproject={{ project.path }} --player-save-path=build/players --artifacts_path=build/logs --scripting-backend={{ backend }} --build-only --testfilter=Unity.Netcode.RuntimeTests --extra-editor-arg=-batchmode --extra-editor-arg=-nographics
3636
{% else %}
37-
./utr \
37+
./utr --suite=playmode --platform={{ platform.standalone }} --editor-location=.Editor --testproject={{ project.path }} --player-save-path=build/players --artifacts_path=build/logs --scripting-backend={{ backend }} --build-only --testfilter=Unity.Netcode.RuntimeTests --extra-editor-arg=-batchmode --extra-editor-arg=-nographics
3838
{% endif %}
39-
--suite=playmode \
40-
--platform={{ platform.standalone }} \
41-
--editor-location=.Editor \
42-
--testproject={{ project.path }} \
43-
--player-save-path=build/players \
44-
--artifacts_path=build/logs \
45-
--scripting-backend={{ backend }} \
46-
--build-only \
47-
--testfilter=Unity.Netcode.RuntimeTests \
48-
--extra-editor-arg=-batchmode \
49-
--extra-editor-arg=-nographics
5039

5140
# Run Standalone tests
5241
- |
53-
{% if platform.name != "win" %}./{% endif %}utr \
54-
--suite=playmode \
55-
--platform={{ platform.standalone }} \
56-
--player-load-path=build/players \
57-
--artifacts_path=build/test-results \
58-
--scripting-backend={{ backend }} \
59-
--testfilter=Unity.Netcode.RuntimeTests \
60-
--playergraphicsapi=Null
42+
{% if platform.name == "win" %}
43+
utr.bat --suite=playmode --platform={{ platform.standalone }} --player-load-path=build/players --artifacts_path=build/test-results --scripting-backend={{ backend }} --testfilter=Unity.Netcode.RuntimeTests --playergraphicsapi=Null
44+
{% else %}
45+
./utr --suite=playmode --platform={{ platform.standalone }} --player-load-path=build/players --artifacts_path=build/test-results --scripting-backend={{ backend }} --testfilter=Unity.Netcode.RuntimeTests --playergraphicsapi=Null
46+
{% endif %}
6147

6248
artifacts:
6349
logs:

.yamato/project.metafile

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -15,74 +15,74 @@ test_platforms:
1515
type: Unity::VM
1616
image: package-ci/ubuntu-22.04:v4
1717
flavor: b1.large
18-
platform: StandaloneLinux64
18+
standalone: StandaloneLinux64
1919
# Desktop platforms cover all main desktop platforms
2020
desktop:
2121
- name: ubuntu
2222
type: Unity::VM
2323
image: package-ci/ubuntu-22.04:v4
2424
flavor: b1.large
25-
platform: StandaloneLinux64
25+
standalone: StandaloneLinux64
2626
- name: win
2727
type: Unity::VM
2828
image: package-ci/win10:v4
2929
flavor: b1.large
30-
platform: StandaloneWindows64
30+
standalone: StandaloneWindows64
3131
- name: mac
3232
type: Unity::VM::osx
3333
image: package-ci/macos-13:v4
3434
flavor: m1.mac
35-
platform: StandaloneOSX
35+
standalone: StandaloneOSX
3636
# Mobile platforms cover all main mobile devices. There is a split between the build and run phase so there is a need of splitting specification for both (since its different)
3737
mobile_build:
3838
# It would be simpler to build android app with ubuntu but the option with windows was chosen since it covers more users
3939
- name: android
4040
type: Unity::VM
4141
image: package-ci/win10:v4
4242
flavor: b1.large
43-
platform: Android
43+
standalone: Android
4444
- name: ios
4545
type: Unity::VM::osx
4646
image: mobile-ci/ios:stable
4747
flavor: m1.mac
48-
platform: IOS
48+
standalone: IOS
4949
mobile_test:
5050
- name: android
5151
type: Unity::mobile::shield
5252
image: package-ci/ubuntu-22.04:v4
5353
flavor: b1.large
5454
model: ShieldPro
55-
platform: Android
55+
standalone: Android
5656
- name: ios
5757
type: Unity::mobile::iPhone
5858
image: package-ci/macos-13:v4
5959
flavor: m1.mac
6060
model: SE
61-
platform: IOS
61+
standalone: IOS
6262
# We should test on at least one more "exotic" platform. Nintendo Switch was chosen as it represents broadly console platforms
6363
console:
6464
- name: nintendoSwitch
6565
type: Unity::console::switch
6666
image: package-ci/win10-switch:v4
6767
flavor: b1.large
68-
platform: Switch
68+
standalone: Switch
6969
# Requires splitting
7070
- name: xboxOne
7171
type: Unity::console::xbox
7272
image: package-ci/win10-xbox
7373
flavor: b1.large
74-
platform: GameCoreXboxOne
74+
standalone: GameCoreXboxOne
7575
- name: ps4
7676
type: Unity::console::ps4
7777
image: package-ci/win10-ps4
7878
flavor: b1.large
79-
platform: PS4
79+
standalone: PS4
8080
# PS5 requires splitting like Android and IOS
8181
- name: ps5
8282
type: Unity::console::ps5
8383
image: package-ci/win10-ps5
8484
flavor: b1.large
85-
platform: PS5
85+
standalone: PS5
8686
Arm64:
8787
- name: mac-arm64
8888
type: Unity::VM::osx

.yamato/webgl-build.yml

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -36,22 +36,10 @@ webgl_build_{{ project.name }}_{{ editor }}:
3636
# Build Player
3737
- |
3838
{% if platform.name == "win" %}
39-
utr.bat \
39+
utr.bat --suite=playmode --platform=WebGL --artifacts_path=build/test-results --timeout=1800 --testproject={{ project.path }} --editor-location=.Editor --build-only --player-save-path=build/players --extra-editor-arg=-batchmode --extra-editor-arg=-nographics --scripting-backend=il2cpp --extra-editor-arg="-cloudEnvironment staging"
4040
{% else %}
41-
./utr \
41+
./utr --suite=playmode --platform=WebGL --artifacts_path=build/test-results --timeout=1800 --testproject={{ project.path }} --editor-location=.Editor --build-only --player-save-path=build/players --extra-editor-arg=-batchmode --extra-editor-arg=-nographics --scripting-backend=il2cpp --extra-editor-arg="-cloudEnvironment staging"
4242
{% endif %}
43-
--suite=playmode \
44-
--platform=WebGL \
45-
--artifacts_path=build/test-results \
46-
--timeout=1800 \
47-
--testproject={{ project.path }} \
48-
--editor-location=.Editor \
49-
--build-only \
50-
--player-save-path=build/players\
51-
--extra-editor-arg=-batchmode \
52-
--extra-editor-arg=-nographics \
53-
--scripting-backend=il2cpp \
54-
--extra-editor-arg="-cloudEnvironment staging"
5543

5644
artifacts:
5745
logs:

0 commit comments

Comments
 (0)