Skip to content

Commit 154bdfc

Browse files
committed
Fixed tvOS test run scripts for CI
1 parent a5f1d0c commit 154bdfc

File tree

2 files changed

+27
-6
lines changed

2 files changed

+27
-6
lines changed
Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,43 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<document type="com.apple.InterfaceBuilder.AppleTV.Storyboard" version="3.0" toolsVersion="13122.16" systemVersion="17A278a" targetRuntime="AppleTV" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES" initialViewController="BYZ-38-t0r">
2+
<document type="com.apple.InterfaceBuilder.AppleTV.Storyboard" version="3.0" toolsVersion="16096" targetRuntime="AppleTV" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES" initialViewController="BYZ-38-t0r">
3+
<device id="appleTV" appearance="light"/>
34
<dependencies>
4-
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="13104.12"/>
5+
<deployment identifier="tvOS"/>
6+
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="16087"/>
57
<capability name="Safe area layout guides" minToolsVersion="9.0"/>
68
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
79
</dependencies>
810
<scenes>
911
<!--View Controller-->
1012
<scene sceneID="tne-QT-ifu">
1113
<objects>
12-
<viewController id="BYZ-38-t0r" customClass="ViewController" customModuleProvider="target" sceneMemberID="viewController">
14+
<viewController id="BYZ-38-t0r" customClass="ViewController" customModule="Mocky_Example_tvOS" customModuleProvider="target" sceneMemberID="viewController">
1315
<layoutGuides>
1416
<viewControllerLayoutGuide type="top" id="y3c-jy-aDJ"/>
1517
<viewControllerLayoutGuide type="bottom" id="wfy-db-euE"/>
1618
</layoutGuides>
1719
<view key="view" contentMode="scaleToFill" id="8bC-Xf-vdC">
1820
<rect key="frame" x="0.0" y="0.0" width="1920" height="1080"/>
1921
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
22+
<subviews>
23+
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="SwiftyMocky tvOS example" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="3m4-jI-eN1">
24+
<rect key="frame" x="730" y="517" width="460" height="46"/>
25+
<fontDescription key="fontDescription" style="UICTFontTextStyleHeadline"/>
26+
<nil key="textColor"/>
27+
<nil key="highlightedColor"/>
28+
</label>
29+
</subviews>
2030
<color key="backgroundColor" red="0.0" green="0.0" blue="0.0" alpha="0.0" colorSpace="custom" customColorSpace="sRGB"/>
31+
<constraints>
32+
<constraint firstItem="3m4-jI-eN1" firstAttribute="centerY" secondItem="8bC-Xf-vdC" secondAttribute="centerY" id="0R3-BZ-bIJ"/>
33+
<constraint firstItem="3m4-jI-eN1" firstAttribute="centerX" secondItem="8bC-Xf-vdC" secondAttribute="centerX" id="8P9-GP-MSW"/>
34+
</constraints>
2135
<viewLayoutGuide key="safeArea" id="wu6-TO-1qx"/>
2236
</view>
2337
</viewController>
2438
<placeholder placeholderIdentifier="IBFirstResponder" id="dkx-z0-nzr" sceneMemberID="firstResponder"/>
2539
</objects>
40+
<point key="canvasLocation" x="69" y="69"/>
2641
</scene>
2742
</scenes>
2843
</document>

fastlane/Fastfile

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,18 @@ end
1212
platform :tvos do
1313
desc "Runs all the tests"
1414
lane :test do
15-
scan(scheme: "Mocky_Tests_tvOS")
15+
scan(
16+
scheme: "Mocky_Tests_tvOS",
17+
devices: ["Apple TV"]
18+
)
1619
end
17-
20+
1821
desc "Runs all the tests on tvOS 13.x"
1922
lane :test_13 do
20-
scan(scheme: "Mocky_Tests_tvOS", devices: ["Apple TV (13.2)"])
23+
scan(
24+
scheme: "Mocky_Tests_tvOS",
25+
devices: ["Apple TV (13.2)"]
26+
)
2127
end
2228
end
2329

0 commit comments

Comments
 (0)