Skip to content

Commit 8e08b3e

Browse files
author
Rui Peres
committed
Simplified travis file
1 parent eb0c411 commit 8e08b3e

6 files changed

Lines changed: 97 additions & 28 deletions

File tree

.travis.yml

Lines changed: 4 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,7 @@
11
language: objective-c
22
osx_image: xcode7.2
3-
env:
4-
matrix:
5-
- SCHEME="OptionalExtensions iOS" SDK="iphonesimulator" DESTINATION="platform=iOS Simulator,name=iPhone 6s" RUN_TESTS="YES"
6-
- SCHEME="OptionalExtensions Mac" SDK="macosx" DESTINATION="platform=OS X,arch=x86_64" RUN_TESTS="YES"
7-
# NOTE: tvOS tests are disabled due the lack of support from xctool (https://github.com/facebook/xctool/issues/625)
8-
- SCHEME="OptionalExtensions tvOS" SDK="appletvsimulator" DESTINATION="platform=tvOS Simulator,name=Apple TV 1080p" RUN_TESTS="NO"
9-
- SCHEME="OptionalExtensions watchOS" SDK="watchsimulator" DESTINATION="platform=watchOS Simulator,name=Apple Watch - 38mm" RUN_TESTS="NO"
103
script:
11-
- set -o pipefail
12-
- xcodebuild -version
13-
- xcodebuild -showsdks
14-
- xcrun simctl list
15-
- xctool --version
16-
17-
- if [ $RUN_TESTS == "YES" ]; then
18-
xctool -scheme "$SCHEME" -sdk "$SDK" -destination "$DESTINATION" -configuration Debug test -parallelize;
19-
else
20-
xctool -scheme "$SCHEME" -sdk "$SDK" -destination "$DESTINATION" -configuration Debug build;
21-
fi
22-
23-
- if [ $RUN_TESTS == "YES" ]; then
24-
xctool -scheme "$SCHEME" -sdk "$SDK" -destination "$DESTINATION" -configuration Release test -parallelize;
25-
else
26-
xctool -scheme "$SCHEME" -sdk "$SDK" -destination "$DESTINATION" -configuration Release build;
27-
fi
4+
- xcodebuild test -scheme OptionalExtensions-Mac
5+
- xcodebuild test -scheme OptionalExtensions-iOS -sdk iphonesimulator
6+
- xcodebuild test -scheme OptionalExtensions-tvOS -sdk appletvsimulator
7+
- xcodebuild build -scheme OptionalExtensions-watchOS -sdk watchsimulator

OptionalExtensions.xcodeproj/xcshareddata/xcschemes/OptionalExtensions Mac.xcscheme renamed to OptionalExtensions.xcodeproj/xcshareddata/xcschemes/OptionalExtensions-Mac.xcscheme

File renamed without changes.

OptionalExtensions.xcodeproj/xcshareddata/xcschemes/OptionalExtensions iOS.xcscheme renamed to OptionalExtensions.xcodeproj/xcshareddata/xcschemes/OptionalExtensions-iOS.xcscheme

File renamed without changes.

OptionalExtensions.xcodeproj/xcshareddata/xcschemes/OptionalExtensions tvOS.xcscheme renamed to OptionalExtensions.xcodeproj/xcshareddata/xcschemes/OptionalExtensions-tvOS.xcscheme

File renamed without changes.
Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<Scheme
3+
LastUpgradeVersion = "0720"
4+
version = "1.3">
5+
<BuildAction
6+
parallelizeBuildables = "YES"
7+
buildImplicitDependencies = "YES">
8+
<BuildActionEntries>
9+
<BuildActionEntry
10+
buildForTesting = "YES"
11+
buildForRunning = "YES"
12+
buildForProfiling = "YES"
13+
buildForArchiving = "YES"
14+
buildForAnalyzing = "YES">
15+
<BuildableReference
16+
BuildableIdentifier = "primary"
17+
BlueprintIdentifier = "C7263FBB1C3C6BB200F402F9"
18+
BuildableName = "OptionalExtensions.framework"
19+
BlueprintName = "OptionalExtensions watchOS"
20+
ReferencedContainer = "container:OptionalExtensions.xcodeproj">
21+
</BuildableReference>
22+
</BuildActionEntry>
23+
</BuildActionEntries>
24+
</BuildAction>
25+
<TestAction
26+
buildConfiguration = "Debug"
27+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
28+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
29+
shouldUseLaunchSchemeArgsEnv = "YES">
30+
<Testables>
31+
</Testables>
32+
<MacroExpansion>
33+
<BuildableReference
34+
BuildableIdentifier = "primary"
35+
BlueprintIdentifier = "C7263FBB1C3C6BB200F402F9"
36+
BuildableName = "OptionalExtensions.framework"
37+
BlueprintName = "OptionalExtensions watchOS"
38+
ReferencedContainer = "container:OptionalExtensions.xcodeproj">
39+
</BuildableReference>
40+
</MacroExpansion>
41+
<AdditionalOptions>
42+
</AdditionalOptions>
43+
</TestAction>
44+
<LaunchAction
45+
buildConfiguration = "Debug"
46+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
47+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
48+
launchStyle = "0"
49+
useCustomWorkingDirectory = "NO"
50+
ignoresPersistentStateOnLaunch = "NO"
51+
debugDocumentVersioning = "YES"
52+
debugServiceExtension = "internal"
53+
allowLocationSimulation = "YES">
54+
<MacroExpansion>
55+
<BuildableReference
56+
BuildableIdentifier = "primary"
57+
BlueprintIdentifier = "C7263FBB1C3C6BB200F402F9"
58+
BuildableName = "OptionalExtensions.framework"
59+
BlueprintName = "OptionalExtensions watchOS"
60+
ReferencedContainer = "container:OptionalExtensions.xcodeproj">
61+
</BuildableReference>
62+
</MacroExpansion>
63+
<AdditionalOptions>
64+
</AdditionalOptions>
65+
</LaunchAction>
66+
<ProfileAction
67+
buildConfiguration = "Release"
68+
shouldUseLaunchSchemeArgsEnv = "YES"
69+
savedToolIdentifier = ""
70+
useCustomWorkingDirectory = "NO"
71+
debugDocumentVersioning = "YES">
72+
<MacroExpansion>
73+
<BuildableReference
74+
BuildableIdentifier = "primary"
75+
BlueprintIdentifier = "C7263FBB1C3C6BB200F402F9"
76+
BuildableName = "OptionalExtensions.framework"
77+
BlueprintName = "OptionalExtensions watchOS"
78+
ReferencedContainer = "container:OptionalExtensions.xcodeproj">
79+
</BuildableReference>
80+
</MacroExpansion>
81+
</ProfileAction>
82+
<AnalyzeAction
83+
buildConfiguration = "Debug">
84+
</AnalyzeAction>
85+
<ArchiveAction
86+
buildConfiguration = "Release"
87+
revealArchiveInOrganizer = "YES">
88+
</ArchiveAction>
89+
</Scheme>

OptionalExtensions.xcodeproj/xcuserdata/ruiperes.xcuserdatad/xcschemes/xcschememanagement.plist

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,22 +4,22 @@
44
<dict>
55
<key>SchemeUserState</key>
66
<dict>
7-
<key>OptionalExtensions Mac.xcscheme_^#shared#^_</key>
7+
<key>OptionalExtensions-Mac.xcscheme_^#shared#^_</key>
88
<dict>
99
<key>orderHint</key>
1010
<integer>1</integer>
1111
</dict>
12-
<key>OptionalExtensions iOS.xcscheme_^#shared#^_</key>
12+
<key>OptionalExtensions-iOS.xcscheme_^#shared#^_</key>
1313
<dict>
1414
<key>orderHint</key>
1515
<integer>0</integer>
1616
</dict>
17-
<key>OptionalExtensions tvOS.xcscheme_^#shared#^_</key>
17+
<key>OptionalExtensions-tvOS.xcscheme_^#shared#^_</key>
1818
<dict>
1919
<key>orderHint</key>
2020
<integer>3</integer>
2121
</dict>
22-
<key>OptionalExtensions watchOS.xcscheme_^#shared#^_</key>
22+
<key>OptionalExtensions-watchOS.xcscheme_^#shared#^_</key>
2323
<dict>
2424
<key>orderHint</key>
2525
<integer>2</integer>

0 commit comments

Comments
 (0)