Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Xcode project, Travis set up and first tests #143

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 6 additions & 0 deletions .slather.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# .slather.yml

ci_service: travis_ci
coverage_service: coveralls
xcodeproj: MGBoxKit.xcodeproj
source_directory: MGBoxKit
8 changes: 8 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
language: objective-c
before_install:
- gem i cocoapods --no-ri --no-rdoc
- gem i xcpretty --no-ri --no-rdoc
script:
- set -o pipefail && xcodebuild -workspace MGBoxKit.xcworkspace -scheme MGBoxKitTests -sdk iphonesimulator test | xcpretty -c
after_success: slather

3 changes: 3 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
source 'https://rubygems.org'

gem 'slather'
33 changes: 33 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
GEM
remote: https://rubygems.org/
specs:
activesupport (4.2.1)
i18n (~> 0.7)
json (~> 1.7, >= 1.7.7)
minitest (~> 5.1)
thread_safe (~> 0.3, >= 0.3.4)
tzinfo (~> 1.1)
clamp (0.6.4)
colored (1.2)
i18n (0.7.0)
json (1.8.2)
mini_portile (0.6.2)
minitest (5.6.0)
nokogiri (1.6.6.2)
mini_portile (~> 0.6.0)
slather (1.7.0)
clamp (~> 0.6)
nokogiri (~> 1.6.3)
xcodeproj (~> 0.23.0)
thread_safe (0.3.5)
tzinfo (1.2.2)
thread_safe (~> 0.1)
xcodeproj (0.23.1)
activesupport (>= 3)
colored (~> 1.2)

PLATFORMS
ruby

DEPENDENCIES
slather
838 changes: 838 additions & 0 deletions MGBoxKit.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>IDESourceControlProjectFavoriteDictionaryKey</key>
<false/>
<key>IDESourceControlProjectIdentifier</key>
<string>707EE6C5-3C50-4561-BE03-F5DA6A485642</string>
<key>IDESourceControlProjectName</key>
<string>MGBoxKit</string>
<key>IDESourceControlProjectOriginsDictionary</key>
<dict>
<key>9BCA324497A495CF0B9A6EE51FC855A68CEB6945</key>
<string>github.com:Ben-G/MGBoxKit.git</string>
</dict>
<key>IDESourceControlProjectPath</key>
<string>MGBoxKit.xcodeproj</string>
<key>IDESourceControlProjectRelativeInstallPathDictionary</key>
<dict>
<key>9BCA324497A495CF0B9A6EE51FC855A68CEB6945</key>
<string>../..</string>
</dict>
<key>IDESourceControlProjectURL</key>
<string>github.com:Ben-G/MGBoxKit.git</string>
<key>IDESourceControlProjectVersion</key>
<integer>111</integer>
<key>IDESourceControlProjectWCCIdentifier</key>
<string>9BCA324497A495CF0B9A6EE51FC855A68CEB6945</string>
<key>IDESourceControlProjectWCConfigurations</key>
<array>
<dict>
<key>IDESourceControlRepositoryExtensionIdentifierKey</key>
<string>public.vcs.git</string>
<key>IDESourceControlWCCIdentifierKey</key>
<string>9BCA324497A495CF0B9A6EE51FC855A68CEB6945</string>
<key>IDESourceControlWCCName</key>
<string>MGBoxKit</string>
</dict>
</array>
</dict>
</plist>
77 changes: 77 additions & 0 deletions MGBoxKit.xcodeproj/xcshareddata/xcschemes/MGBoxKit.xcscheme
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "0630"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "622BDA801AE2EE3C0092EFDE"
BuildableName = "MGBoxKit.framework"
BlueprintName = "MGBoxKit"
ReferencedContainer = "container:MGBoxKit.xcodeproj">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES"
buildConfiguration = "Debug">
<Testables>
</Testables>
</TestAction>
<LaunchAction
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
launchStyle = "0"
useCustomWorkingDirectory = "NO"
buildConfiguration = "Debug"
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
allowLocationSimulation = "YES">
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "622BDA801AE2EE3C0092EFDE"
BuildableName = "MGBoxKit.framework"
BlueprintName = "MGBoxKit"
ReferencedContainer = "container:MGBoxKit.xcodeproj">
</BuildableReference>
</MacroExpansion>
<AdditionalOptions>
</AdditionalOptions>
</LaunchAction>
<ProfileAction
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
buildConfiguration = "Release"
debugDocumentVersioning = "YES">
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "622BDA801AE2EE3C0092EFDE"
BuildableName = "MGBoxKit.framework"
BlueprintName = "MGBoxKit"
ReferencedContainer = "container:MGBoxKit.xcodeproj">
</BuildableReference>
</MacroExpansion>
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Release"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>
136 changes: 136 additions & 0 deletions MGBoxKit.xcodeproj/xcshareddata/xcschemes/MGBoxKitTestApp.xcscheme
Original file line number Diff line number Diff line change
@@ -0,0 +1,136 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "0630"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "622BDA381AE2EBF40092EFDE"
BuildableName = "MGBoxKitTestApp.app"
BlueprintName = "MGBoxKitTestApp"
ReferencedContainer = "container:MGBoxKit.xcodeproj">
</BuildableReference>
</BuildActionEntry>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "NO"
buildForArchiving = "NO"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "622BDA541AE2EBF50092EFDE"
BuildableName = "MGBoxKitTests.xctest"
BlueprintName = "MGBoxKitTests"
ReferencedContainer = "container:MGBoxKit.xcodeproj">
</BuildableReference>
</BuildActionEntry>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "NO"
buildForArchiving = "NO"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "622BDA8A1AE2EE3C0092EFDE"
BuildableName = "MGBoxKitTests.xctest"
BlueprintName = "MGBoxKitTests"
ReferencedContainer = "container:MGBoxKit.xcodeproj">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES"
buildConfiguration = "Debug">
<Testables>
<TestableReference
skipped = "NO">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "622BDA541AE2EBF50092EFDE"
BuildableName = "MGBoxKitTests.xctest"
BlueprintName = "MGBoxKitTests"
ReferencedContainer = "container:MGBoxKit.xcodeproj">
</BuildableReference>
</TestableReference>
<TestableReference
skipped = "NO">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "622BDA8A1AE2EE3C0092EFDE"
BuildableName = "MGBoxKitTests.xctest"
BlueprintName = "MGBoxKitTests"
ReferencedContainer = "container:MGBoxKit.xcodeproj">
</BuildableReference>
</TestableReference>
</Testables>
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "622BDA381AE2EBF40092EFDE"
BuildableName = "MGBoxKitTestApp.app"
BlueprintName = "MGBoxKitTestApp"
ReferencedContainer = "container:MGBoxKit.xcodeproj">
</BuildableReference>
</MacroExpansion>
</TestAction>
<LaunchAction
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
launchStyle = "0"
useCustomWorkingDirectory = "NO"
buildConfiguration = "Debug"
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
allowLocationSimulation = "YES">
<BuildableProductRunnable
runnableDebuggingMode = "0">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "622BDA381AE2EBF40092EFDE"
BuildableName = "MGBoxKitTestApp.app"
BlueprintName = "MGBoxKitTestApp"
ReferencedContainer = "container:MGBoxKit.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
<AdditionalOptions>
</AdditionalOptions>
</LaunchAction>
<ProfileAction
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
buildConfiguration = "Release"
debugDocumentVersioning = "YES">
<BuildableProductRunnable
runnableDebuggingMode = "0">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "622BDA381AE2EBF40092EFDE"
BuildableName = "MGBoxKitTestApp.app"
BlueprintName = "MGBoxKitTestApp"
ReferencedContainer = "container:MGBoxKit.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Release"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>