Skip to content

Commit

Permalink
Add CI settings.
Browse files Browse the repository at this point in the history
  • Loading branch information
nori0620 committed Jan 13, 2015
1 parent d22cfba commit 890bf5e
Show file tree
Hide file tree
Showing 7 changed files with 135 additions and 4 deletions.
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@ DerivedData
*.ipa
*.xcuserstate

# Ruby
#
vendor
Gemfile.lock
.bundle

# CocoaPods
#
# We recommend against adding the Pods directory to your .gitignore. However
Expand Down
4 changes: 4 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
language: objective-c

script:
- bundle exec rake default
4 changes: 4 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
source 'https://rubygems.org'

gem 'rake'
gem 'xcpretty'
6 changes: 3 additions & 3 deletions NSDate+SRGFekable.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
Pod::Spec.new do |s|

s.name = "NSDate+SRGFekable"
s.version = "0.0.1"
s.summary = "NSDate+SRGFekable is a category to fake results of NSDate. You can test your app features that depend on date more easily."
s.version = "0.0.2"
s.summary = "A category to fake current date for unit tests."
s.homepage = "https://github.com/soragoto/NSDate-SRGFekable"
s.license = "MIT"
s.author = { "Norihiro Sakamoto" => "nori0620@gmail.com" }
s.source = { :git => "https://github.com/soragoto/NSDate-SRGFekable.git", :tag => "0.0.1" }
s.source = { :git => "https://github.com/soragoto/NSDate-SRGFekable.git", :tag => "0.0.2" }
s.platform = :ios, '6.0'
s.source_files = "Classes", "Classes/**/*.{h,m}"
s.resources = ['Classes/SRGFakableViewController.xib']
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,110 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "0610"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "CC367D851A55348300B87159"
BuildableName = "NSDate+SRGFekable.app"
BlueprintName = "NSDate+SRGFekable"
ReferencedContainer = "container:NSDate+SRGFekable.xcodeproj">
</BuildableReference>
</BuildActionEntry>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "NO"
buildForArchiving = "NO"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "CC367D9E1A55348400B87159"
BuildableName = "NSDate+SRGFekableTests.xctest"
BlueprintName = "NSDate+SRGFekableTests"
ReferencedContainer = "container:NSDate+SRGFekable.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 = "CC367D9E1A55348400B87159"
BuildableName = "NSDate+SRGFekableTests.xctest"
BlueprintName = "NSDate+SRGFekableTests"
ReferencedContainer = "container:NSDate+SRGFekable.xcodeproj">
</BuildableReference>
</TestableReference>
</Testables>
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "CC367D851A55348300B87159"
BuildableName = "NSDate+SRGFekable.app"
BlueprintName = "NSDate+SRGFekable"
ReferencedContainer = "container:NSDate+SRGFekable.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>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "CC367D851A55348300B87159"
BuildableName = "NSDate+SRGFekable.app"
BlueprintName = "NSDate+SRGFekable"
ReferencedContainer = "container:NSDate+SRGFekable.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
<AdditionalOptions>
</AdditionalOptions>
</LaunchAction>
<ProfileAction
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
buildConfiguration = "Release"
debugDocumentVersioning = "YES">
<BuildableProductRunnable>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "CC367D851A55348300B87159"
BuildableName = "NSDate+SRGFekable.app"
BlueprintName = "NSDate+SRGFekable"
ReferencedContainer = "container:NSDate+SRGFekable.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Release"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>
2 changes: 1 addition & 1 deletion NSDate+SRGFekable/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<string>0.0.2</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
Expand Down
7 changes: 7 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
SCHEME = "NSDate+SRGFekable"
DESTINATION = "name=iPhone 5,OS=8.1"

desc "unit test"
task :default do
sh "xcodebuild test -scheme #{SCHEME} -destination \"#{DESTINATION}\" -configuration Debug | bundle exec xcpretty -c && exit ${PIPESTATUS[0]}"
end

0 comments on commit 890bf5e

Please sign in to comment.