Skip to content

Commit 4fcdd3c

Browse files
add Travis CI build & test support (#7)
* rename macOS scheme to include "macOS" * add travis settings
1 parent 012a953 commit 4fcdd3c

File tree

2 files changed

+140
-0
lines changed

2 files changed

+140
-0
lines changed

Diff for: .travis.yml

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
language: swift
2+
3+
branches:
4+
except:
5+
- gh-pages
6+
7+
install:
8+
- gem install xcpretty -N
9+
- carthage bootstrap
10+
11+
env:
12+
global:
13+
- LC_CTYPE=en_US.UTF-8
14+
- LANG=en_US.UTF-8
15+
- APP_NAME="ReSwift-Todo"
16+
17+
matrix:
18+
include:
19+
- osx_image: xcode10.1
20+
env: SCHEME="macOS" SDK="macosx10.14" DESTINATION="arch=x86_64" SWIFT_VERSION="4.2" ACTION="test"
21+
- osx_image: xcode10.2
22+
env: SCHEME="macOS" SDK="macosx10.14" DESTINATION="arch=x86_64" SWIFT_VERSION="5.0" ACTION="test"
23+
24+
25+
script:
26+
- set -o pipefail
27+
- xcodebuild -version
28+
- xcodebuild -showsdks
29+
- xcodebuild
30+
"$ACTION"
31+
-project "$APP_NAME.xcodeproj"
32+
-scheme "$APP_NAME-$SCHEME"
33+
-sdk "$SDK"
34+
-destination "$DESTINATION"
35+
-configuration Debug
36+
ONLY_ACTIVE_ARCH=YES
37+
GCC_INSTRUMENT_PROGRAM_FLOW_ARCS=YES
38+
GCC_GENERATE_TEST_COVERAGE_FILES=YES
39+
SWIFT_VERSION=$SWIFT_VERSION
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,101 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<Scheme
3+
LastUpgradeVersion = "1020"
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 = "50703AE21D7EACB8001DAF45"
18+
BuildableName = "ReSwift-Todo.app"
19+
BlueprintName = "ReSwift-Todo"
20+
ReferencedContainer = "container:ReSwift-Todo.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 = "50703AF61D7EACB8001DAF45"
36+
BuildableName = "ReSwift-TodoTests.xctest"
37+
BlueprintName = "ReSwift-TodoTests"
38+
ReferencedContainer = "container:ReSwift-Todo.xcodeproj">
39+
</BuildableReference>
40+
</TestableReference>
41+
</Testables>
42+
<MacroExpansion>
43+
<BuildableReference
44+
BuildableIdentifier = "primary"
45+
BlueprintIdentifier = "50703AE21D7EACB8001DAF45"
46+
BuildableName = "ReSwift-Todo.app"
47+
BlueprintName = "ReSwift-Todo"
48+
ReferencedContainer = "container:ReSwift-Todo.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 = "50703AE21D7EACB8001DAF45"
69+
BuildableName = "ReSwift-Todo.app"
70+
BlueprintName = "ReSwift-Todo"
71+
ReferencedContainer = "container:ReSwift-Todo.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 = "50703AE21D7EACB8001DAF45"
88+
BuildableName = "ReSwift-Todo.app"
89+
BlueprintName = "ReSwift-Todo"
90+
ReferencedContainer = "container:ReSwift-Todo.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>

0 commit comments

Comments
 (0)