Skip to content

Commit f7bb66a

Browse files
committed
[travis] Run the unit tests on Travis
Before this wasn't possible due to lack of Travis swift support.
1 parent 3c250bc commit f7bb66a

File tree

2 files changed

+100
-1
lines changed

2 files changed

+100
-1
lines changed

.travis.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
language: objective-c
22
before_install:
33
- gem install cocoapods --no-rdoc --no-ri --no-document --quiet
4-
script: pod lib lint QueryKit.podspec
4+
- gem install xcpretty --no-rdoc --no-ri --no-document --quiet
5+
script:
6+
- xcodebuild -project QueryKit.xcodeproj -scheme QueryKit test | xcpretty -c; exit ${PIPESTATUS[0]}
7+
- pod lib lint QueryKit.podspec
58

Lines changed: 96 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,96 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<Scheme
3+
LastUpgradeVersion = "0600"
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 = "77A9B678195374490016654E"
18+
BuildableName = "QueryKit.framework"
19+
BlueprintName = "QueryKit"
20+
ReferencedContainer = "container:QueryKit.xcodeproj">
21+
</BuildableReference>
22+
</BuildActionEntry>
23+
</BuildActionEntries>
24+
</BuildAction>
25+
<TestAction
26+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
27+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
28+
shouldUseLaunchSchemeArgsEnv = "YES"
29+
buildConfiguration = "Debug">
30+
<Testables>
31+
<TestableReference
32+
skipped = "NO">
33+
<BuildableReference
34+
BuildableIdentifier = "primary"
35+
BlueprintIdentifier = "77A9B683195374490016654E"
36+
BuildableName = "QueryKitTests.xctest"
37+
BlueprintName = "QueryKitTests"
38+
ReferencedContainer = "container:QueryKit.xcodeproj">
39+
</BuildableReference>
40+
</TestableReference>
41+
</Testables>
42+
<MacroExpansion>
43+
<BuildableReference
44+
BuildableIdentifier = "primary"
45+
BlueprintIdentifier = "77A9B678195374490016654E"
46+
BuildableName = "QueryKit.framework"
47+
BlueprintName = "QueryKit"
48+
ReferencedContainer = "container:QueryKit.xcodeproj">
49+
</BuildableReference>
50+
</MacroExpansion>
51+
</TestAction>
52+
<LaunchAction
53+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
54+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
55+
launchStyle = "0"
56+
useCustomWorkingDirectory = "NO"
57+
buildConfiguration = "Debug"
58+
ignoresPersistentStateOnLaunch = "NO"
59+
debugDocumentVersioning = "YES"
60+
allowLocationSimulation = "YES">
61+
<MacroExpansion>
62+
<BuildableReference
63+
BuildableIdentifier = "primary"
64+
BlueprintIdentifier = "77A9B678195374490016654E"
65+
BuildableName = "QueryKit.framework"
66+
BlueprintName = "QueryKit"
67+
ReferencedContainer = "container:QueryKit.xcodeproj">
68+
</BuildableReference>
69+
</MacroExpansion>
70+
<AdditionalOptions>
71+
</AdditionalOptions>
72+
</LaunchAction>
73+
<ProfileAction
74+
shouldUseLaunchSchemeArgsEnv = "YES"
75+
savedToolIdentifier = ""
76+
useCustomWorkingDirectory = "NO"
77+
buildConfiguration = "Release"
78+
debugDocumentVersioning = "YES">
79+
<MacroExpansion>
80+
<BuildableReference
81+
BuildableIdentifier = "primary"
82+
BlueprintIdentifier = "77A9B678195374490016654E"
83+
BuildableName = "QueryKit.framework"
84+
BlueprintName = "QueryKit"
85+
ReferencedContainer = "container:QueryKit.xcodeproj">
86+
</BuildableReference>
87+
</MacroExpansion>
88+
</ProfileAction>
89+
<AnalyzeAction
90+
buildConfiguration = "Debug">
91+
</AnalyzeAction>
92+
<ArchiveAction
93+
buildConfiguration = "Release"
94+
revealArchiveInOrganizer = "YES">
95+
</ArchiveAction>
96+
</Scheme>

0 commit comments

Comments
 (0)