Skip to content

Commit 13175f9

Browse files
author
Dmytro Ivanov
authored
Run tests on tvOS using proper CI image (#1614)
1 parent ad68d2a commit 13175f9

File tree

3 files changed

+26
-5
lines changed

3 files changed

+26
-5
lines changed

.yamato/config.metadata

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
editors:
22
- version: 2020.3
3+
disable_tvos_run: true
34
- version: 2021.3
45
- version: 2022.2
56
- version: trunk

.yamato/upm-ci.yml

Lines changed: 24 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -114,9 +114,8 @@ run_ios_{{ editor.version }}:
114114
build_tvos_{{ editor.version }}:
115115
name: Build Tests on {{ editor.version }} on tvos
116116
agent:
117-
type: Unity::VM::osx # Use Unity::mobile::appletv to get tvOS device
118-
# TODO this should be replaced with package-ci/macos-12:default when PETS-1172 is complete
119-
image: package-ci/macos-12-mobile:stable
117+
type: Unity::VM::osx
118+
image: package-ci/macos-12:default
120119
flavor: b1.large
121120
commands:
122121
- {{ utr_install_nix }}
@@ -131,6 +130,23 @@ build_tvos_{{ editor.version }}:
131130
paths:
132131
- "build/logs/**"
133132

133+
run_tvos_{{ editor.version }}:
134+
name: Run Tests on {{ editor.version }} on tvos
135+
agent:
136+
type: Unity::mobile::appletv
137+
image: package-ci/macos-12:default
138+
flavor: b1.medium
139+
skip_checkout: true
140+
dependencies:
141+
- .yamato/upm-ci.yml#build_tvos_{{ editor.version }}
142+
commands:
143+
- {{ utr_install_nix }}
144+
- ./utr --suite=playmode --platform=tvOS --player-load-path=build/players --artifacts_path=build/test-results --report-performance-data --performance-project-id=InputSystem
145+
artifacts:
146+
logs:
147+
paths:
148+
- "build/test-results/**"
149+
134150
{% for backend in scripting_backends %}
135151
build_android_{{ editor.version }}_{{ backend.name }}:
136152
name: Build Tests on {{ editor.version }} on android {{ backend.name }}
@@ -196,10 +212,14 @@ all_tests:
196212
- .yamato/upm-ci.yml#{{ platform.name }}_{{ editor.version }}
197213
{% endfor %}
198214
{% for backend in scripting_backends %}
199-
- .yamato/upm-ci.yml#run_android_{{ editor.version }}_{{ backend.name }}
215+
- .yamato/upm-ci.yml#run_android_{{ editor.version }}_{{ backend.name }}
200216
{% endfor %}
201217
- .yamato/upm-ci.yml#run_ios_{{ editor.version }}
218+
{% if editor.disable_tvos_run %}
202219
- .yamato/upm-ci.yml#build_tvos_{{ editor.version }}
220+
{% else %}
221+
- .yamato/upm-ci.yml#run_tvos_{{ editor.version }}
222+
{% endif %}
203223
{% endfor %}
204224
- .yamato/upm-ci.yml#publish_dryrun
205225
triggers:

Assets/Tests/InputSystem/Plugins/HIDTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
////TODO: add test to make sure we're not grabbing HIDs that have more specific layouts
1919

2020
// No HID devices on Android
21-
#if (!UNITY_ANDROID && !UNITY_IOS) || UNITY_EDITOR
21+
#if (!UNITY_ANDROID && !UNITY_IOS && !UNITY_TVOS) || UNITY_EDITOR
2222
internal class HIDTests : CoreTestsFixture
2323
{
2424
[Test]

0 commit comments

Comments
 (0)