|
60 | 60 | MACOS_RUNNER = "macos-latest"
|
61 | 61 | LINUX_RUNNER = "ubuntu-latest"
|
62 | 62 |
|
| 63 | +# TODO @drsanta add TVOS to the platforms once the integration tests can be run on tvOS. |
63 | 64 | PARAMETERS = {
|
64 | 65 | "integration_tests": {
|
65 | 66 | "matrix": {
|
66 | 67 | "unity_versions": ["2020"],
|
67 | 68 | "build_os": [""],
|
68 | 69 | "platforms": [WINDOWS, MACOS, LINUX, ANDROID, IOS, PLAYMODE],
|
69 |
| - "mobile_devices": ["android_target", "ios_target"], |
| 70 | + "mobile_devices": ["android_target", "ios_target", "tvos_simulator"], |
70 | 71 | "mobile_test_on": ["real"],
|
71 | 72 |
|
72 | 73 | MINIMAL_KEY: {
|
|
77 | 78 | "build_os": [MACOS_RUNNER,WINDOWS_RUNNER],
|
78 | 79 | "unity_versions": ["2020"],
|
79 | 80 | "mobile_test_on": ["real", "virtual"],
|
80 |
| - "mobile_devices": ["android_target", "ios_target", "simulator_target"], |
| 81 | + "mobile_devices": ["android_target", "ios_target", "simulator_target", "tvos_simulator"], |
81 | 82 | }
|
82 | 83 | },
|
83 | 84 | "config": {
|
|
141 | 142 | "simulator_min": {"platform": IOS, "type": "virtual", "name": "iPhone 6", "version": "11.4"},
|
142 | 143 | "simulator_target": {"platform": IOS, "type": "virtual", "name": "iPhone 8", "version": "14.5"},
|
143 | 144 | "simulator_latest": {"platform": IOS, "type": "virtual", "name": "iPhone 11", "version": "14.4"},
|
| 145 | + "tvos_simulator": {"platform": TVOS, "type": "virtual", "name": "Apple TV", "version": "14.3"}, |
144 | 146 | }
|
145 | 147 |
|
146 | 148 |
|
@@ -340,7 +342,7 @@ def get_testapp_test_matrix(matrix_type, unity_versions, platforms, build_os, mo
|
340 | 342 | device_platform = TEST_DEVICES.get(mobile_device).get("platform")
|
341 | 343 | if device_platform == platform and device_type in mobile_device_types:
|
342 | 344 | test_os = _get_test_os(platform, device_type)
|
343 |
| - ios_sdk = device_type if device_platform == IOS else "NA" |
| 345 | + ios_sdk = device_type if device_platform == IOS or device_platform == TVOS else "NA" |
344 | 346 | matrix["include"].append({"unity_version": unity_version, "platform": platform, "build_os": build_os, "test_os": test_os, "test_device": mobile_device, "device_detail": device_detail, "device_type": device_type, "ios_sdk": ios_sdk})
|
345 | 347 |
|
346 | 348 | return matrix
|
|
0 commit comments