Skip to content

Commit 85d1f9c

Browse files
committed
Run tests in Travis
1 parent fd81dff commit 85d1f9c

File tree

3 files changed

+153
-6
lines changed

3 files changed

+153
-6
lines changed

.travis.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# references:
2+
# * http://www.objc.io/issue-6/travis-ci.html
3+
# * https://github.com/supermarin/xcpretty#usage
4+
5+
language: objective-c
6+
before_install:
7+
- gem install cocoapods --no-rdoc --no-ri --no-document --quiet # Since Travis is not always on latest version
8+
- pod install --project-directory=Xcode/Testing2
9+
install:
10+
- gem install xcpretty --no-rdoc --no-ri --no-document --quiet
11+
script:
12+
- set -o pipefail && xcodebuild test -workspace Xcode/Testing2/XMPPFrameworkTests.xcworkspace -scheme XMPPFrameworkTests -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone 6,OS=8.1' | xcpretty -c

Xcode/Testing2/XMPPFrameworkTests/XMPPFrameworkTests.xcodeproj/project.pbxproj

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,8 @@
262262
808D2D5B3A8FC3353BC1C1AD /* Frameworks */ = {
263263
isa = PBXGroup;
264264
children = (
265+
9EF4C7CB1AE2C43F0019F001 /* libidn.a */,
266+
9EF4C7C91AE2C4320019F001 /* Security.framework */,
265267
9E56CB5E1AE2F844008CE1D5 /* CoreData.framework */,
266268
E12FE78966D1CF605B0A4F20 /* libPods-XMPPFrameworkTestsTests.a */,
267269
);
@@ -332,8 +334,6 @@
332334
isa = PBXGroup;
333335
children = (
334336
9EF4C7CD1AE2C4480019F001 /* libresolv.dylib */,
335-
9EF4C7CB1AE2C43F0019F001 /* libidn.a */,
336-
9EF4C7C91AE2C4320019F001 /* Security.framework */,
337337
9EF4C7C71AE2C3B70019F001 /* libxml2.dylib */,
338338
9EF4C5CA1AE2C2D60019F001 /* XMPPFramework */,
339339
9EF4C5A31AE2C2C50019F001 /* XMPPFrameworkTests */,
@@ -1001,7 +1001,6 @@
10011001
"$(inherited)",
10021002
"/usr/include/libxml2/**",
10031003
);
1004-
IPHONEOS_DEPLOYMENT_TARGET = 8.3;
10051004
MTL_ENABLE_DEBUG_INFO = YES;
10061005
ONLY_ACTIVE_ARCH = YES;
10071006
SDKROOT = iphoneos;
@@ -1042,7 +1041,6 @@
10421041
"$(inherited)",
10431042
"/usr/include/libxml2/**",
10441043
);
1045-
IPHONEOS_DEPLOYMENT_TARGET = 8.3;
10461044
MTL_ENABLE_DEBUG_INFO = NO;
10471045
SDKROOT = iphoneos;
10481046
VALIDATE_PRODUCT = YES;
@@ -1057,7 +1055,7 @@
10571055
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
10581056
LIBRARY_SEARCH_PATHS = (
10591057
"$(inherited)",
1060-
/Users/pnm/code/XMPPFramework/Vendor/libidn,
1058+
"$(SRCROOT)/../../../Vendor/libidn",
10611059
);
10621060
PRODUCT_NAME = "$(TARGET_NAME)";
10631061
};
@@ -1071,7 +1069,7 @@
10711069
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
10721070
LIBRARY_SEARCH_PATHS = (
10731071
"$(inherited)",
1074-
/Users/pnm/code/XMPPFramework/Vendor/libidn,
1072+
"$(SRCROOT)/../../../Vendor/libidn",
10751073
);
10761074
PRODUCT_NAME = "$(TARGET_NAME)";
10771075
};
@@ -1123,6 +1121,7 @@
11231121
9E56CB401AE2F7E9008CE1D5 /* Release */,
11241122
);
11251123
defaultConfigurationIsVisible = 0;
1124+
defaultConfigurationName = Release;
11261125
};
11271126
9EF4C59C1AE2C2C50019F001 /* Build configuration list for PBXProject "XMPPFrameworkTests" */ = {
11281127
isa = XCConfigurationList;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,136 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<Scheme
3+
LastUpgradeVersion = "0630"
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 = "9EF4C5A01AE2C2C50019F001"
18+
BuildableName = "XMPPFrameworkTests.app"
19+
BlueprintName = "XMPPFrameworkTests"
20+
ReferencedContainer = "container:XMPPFrameworkTests.xcodeproj">
21+
</BuildableReference>
22+
</BuildActionEntry>
23+
<BuildActionEntry
24+
buildForTesting = "YES"
25+
buildForRunning = "YES"
26+
buildForProfiling = "NO"
27+
buildForArchiving = "NO"
28+
buildForAnalyzing = "YES">
29+
<BuildableReference
30+
BuildableIdentifier = "primary"
31+
BlueprintIdentifier = "9EF4C5B91AE2C2C50019F001"
32+
BuildableName = "XMPPFrameworkTestsTests.xctest"
33+
BlueprintName = "XMPPFrameworkTestsTests"
34+
ReferencedContainer = "container:XMPPFrameworkTests.xcodeproj">
35+
</BuildableReference>
36+
</BuildActionEntry>
37+
<BuildActionEntry
38+
buildForTesting = "YES"
39+
buildForRunning = "YES"
40+
buildForProfiling = "NO"
41+
buildForArchiving = "NO"
42+
buildForAnalyzing = "YES">
43+
<BuildableReference
44+
BuildableIdentifier = "primary"
45+
BlueprintIdentifier = "9E56CB361AE2F7E9008CE1D5"
46+
BuildableName = "XMPPFrameworkCoreDataTests.xctest"
47+
BlueprintName = "XMPPFrameworkCoreDataTests"
48+
ReferencedContainer = "container:XMPPFrameworkTests.xcodeproj">
49+
</BuildableReference>
50+
</BuildActionEntry>
51+
</BuildActionEntries>
52+
</BuildAction>
53+
<TestAction
54+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
55+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
56+
shouldUseLaunchSchemeArgsEnv = "YES"
57+
buildConfiguration = "Debug">
58+
<Testables>
59+
<TestableReference
60+
skipped = "NO">
61+
<BuildableReference
62+
BuildableIdentifier = "primary"
63+
BlueprintIdentifier = "9EF4C5B91AE2C2C50019F001"
64+
BuildableName = "XMPPFrameworkTestsTests.xctest"
65+
BlueprintName = "XMPPFrameworkTestsTests"
66+
ReferencedContainer = "container:XMPPFrameworkTests.xcodeproj">
67+
</BuildableReference>
68+
</TestableReference>
69+
<TestableReference
70+
skipped = "NO">
71+
<BuildableReference
72+
BuildableIdentifier = "primary"
73+
BlueprintIdentifier = "9E56CB361AE2F7E9008CE1D5"
74+
BuildableName = "XMPPFrameworkCoreDataTests.xctest"
75+
BlueprintName = "XMPPFrameworkCoreDataTests"
76+
ReferencedContainer = "container:XMPPFrameworkTests.xcodeproj">
77+
</BuildableReference>
78+
</TestableReference>
79+
</Testables>
80+
<MacroExpansion>
81+
<BuildableReference
82+
BuildableIdentifier = "primary"
83+
BlueprintIdentifier = "9EF4C5A01AE2C2C50019F001"
84+
BuildableName = "XMPPFrameworkTests.app"
85+
BlueprintName = "XMPPFrameworkTests"
86+
ReferencedContainer = "container:XMPPFrameworkTests.xcodeproj">
87+
</BuildableReference>
88+
</MacroExpansion>
89+
</TestAction>
90+
<LaunchAction
91+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
92+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
93+
launchStyle = "0"
94+
useCustomWorkingDirectory = "NO"
95+
buildConfiguration = "Debug"
96+
ignoresPersistentStateOnLaunch = "NO"
97+
debugDocumentVersioning = "YES"
98+
allowLocationSimulation = "YES">
99+
<BuildableProductRunnable
100+
runnableDebuggingMode = "0">
101+
<BuildableReference
102+
BuildableIdentifier = "primary"
103+
BlueprintIdentifier = "9EF4C5A01AE2C2C50019F001"
104+
BuildableName = "XMPPFrameworkTests.app"
105+
BlueprintName = "XMPPFrameworkTests"
106+
ReferencedContainer = "container:XMPPFrameworkTests.xcodeproj">
107+
</BuildableReference>
108+
</BuildableProductRunnable>
109+
<AdditionalOptions>
110+
</AdditionalOptions>
111+
</LaunchAction>
112+
<ProfileAction
113+
shouldUseLaunchSchemeArgsEnv = "YES"
114+
savedToolIdentifier = ""
115+
useCustomWorkingDirectory = "NO"
116+
buildConfiguration = "Release"
117+
debugDocumentVersioning = "YES">
118+
<BuildableProductRunnable
119+
runnableDebuggingMode = "0">
120+
<BuildableReference
121+
BuildableIdentifier = "primary"
122+
BlueprintIdentifier = "9EF4C5A01AE2C2C50019F001"
123+
BuildableName = "XMPPFrameworkTests.app"
124+
BlueprintName = "XMPPFrameworkTests"
125+
ReferencedContainer = "container:XMPPFrameworkTests.xcodeproj">
126+
</BuildableReference>
127+
</BuildableProductRunnable>
128+
</ProfileAction>
129+
<AnalyzeAction
130+
buildConfiguration = "Debug">
131+
</AnalyzeAction>
132+
<ArchiveAction
133+
buildConfiguration = "Release"
134+
revealArchiveInOrganizer = "YES">
135+
</ArchiveAction>
136+
</Scheme>

0 commit comments

Comments
 (0)