Skip to content

Commit 79e3464

Browse files
committed
Add setup for running tests on Travis
1 parent 3ef40ec commit 79e3464

File tree

5 files changed

+118
-5
lines changed

5 files changed

+118
-5
lines changed

.travis.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
language: objective-c
2+
osx_image: xcode7.2
3+
script:
4+
- ./fastlane/travis.sh
5+
notifications:
6+
email:
7+
on_success: never
8+
Lines changed: 101 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,101 @@
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 = "A619D4341C2413A1005F1A75"
18+
BuildableName = "CIExample.app"
19+
BlueprintName = "CIExample"
20+
ReferencedContainer = "container:CIExample.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+
<TestableReference
32+
skipped = "NO">
33+
<BuildableReference
34+
BuildableIdentifier = "primary"
35+
BlueprintIdentifier = "A619D4481C2413A1005F1A75"
36+
BuildableName = "CIExampleTests.xctest"
37+
BlueprintName = "CIExampleTests"
38+
ReferencedContainer = "container:CIExample.xcodeproj">
39+
</BuildableReference>
40+
</TestableReference>
41+
</Testables>
42+
<MacroExpansion>
43+
<BuildableReference
44+
BuildableIdentifier = "primary"
45+
BlueprintIdentifier = "A619D4341C2413A1005F1A75"
46+
BuildableName = "CIExample.app"
47+
BlueprintName = "CIExample"
48+
ReferencedContainer = "container:CIExample.xcodeproj">
49+
</BuildableReference>
50+
</MacroExpansion>
51+
<AdditionalOptions>
52+
</AdditionalOptions>
53+
</TestAction>
54+
<LaunchAction
55+
buildConfiguration = "Debug"
56+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
57+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
58+
launchStyle = "0"
59+
useCustomWorkingDirectory = "NO"
60+
ignoresPersistentStateOnLaunch = "NO"
61+
debugDocumentVersioning = "YES"
62+
debugServiceExtension = "internal"
63+
allowLocationSimulation = "YES">
64+
<BuildableProductRunnable
65+
runnableDebuggingMode = "0">
66+
<BuildableReference
67+
BuildableIdentifier = "primary"
68+
BlueprintIdentifier = "A619D4341C2413A1005F1A75"
69+
BuildableName = "CIExample.app"
70+
BlueprintName = "CIExample"
71+
ReferencedContainer = "container:CIExample.xcodeproj">
72+
</BuildableReference>
73+
</BuildableProductRunnable>
74+
<AdditionalOptions>
75+
</AdditionalOptions>
76+
</LaunchAction>
77+
<ProfileAction
78+
buildConfiguration = "Release"
79+
shouldUseLaunchSchemeArgsEnv = "YES"
80+
savedToolIdentifier = ""
81+
useCustomWorkingDirectory = "NO"
82+
debugDocumentVersioning = "YES">
83+
<BuildableProductRunnable
84+
runnableDebuggingMode = "0">
85+
<BuildableReference
86+
BuildableIdentifier = "primary"
87+
BlueprintIdentifier = "A619D4341C2413A1005F1A75"
88+
BuildableName = "CIExample.app"
89+
BlueprintName = "CIExample"
90+
ReferencedContainer = "container:CIExample.xcodeproj">
91+
</BuildableReference>
92+
</BuildableProductRunnable>
93+
</ProfileAction>
94+
<AnalyzeAction
95+
buildConfiguration = "Debug">
96+
</AnalyzeAction>
97+
<ArchiveAction
98+
buildConfiguration = "Release"
99+
revealArchiveInOrganizer = "YES">
100+
</ArchiveAction>
101+
</Scheme>

fastlane/Appfile

Lines changed: 0 additions & 3 deletions
This file was deleted.

fastlane/Fastfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
fastlane_version "1.48.0"
1+
fastlane_version "1.47.0"
22

33
default_platform :ios
44

55
platform :ios do
66

77
desc "Runs all the tests"
88
lane :test do
9-
scan(device: "iPhone 6s")
9+
scan(device: "iPhone 6s (9.2)")
1010
end
1111
end
1212

fastlane/travis.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/bin/sh
2+
3+
if [[ "$TRAVIS_PULL_REQUEST" != "false" ]]; then
4+
fastlane test
5+
exit $?
6+
fi
7+

0 commit comments

Comments
 (0)