Skip to content

Commit

Permalink
[CI / Coverage] Travis, Coveralls, Slather.
Browse files Browse the repository at this point in the history
Closes #28, closes #29.
  • Loading branch information
ruslanskorb committed Mar 13, 2015
1 parent 9c8e9db commit 5c1c432
Show file tree
Hide file tree
Showing 5 changed files with 161 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .slather.yml
@@ -0,0 +1,3 @@
coverage_service: coveralls
xcodeproj: Example/RSKImageCropperExample.xcodeproj
source_directory: RSKImageCropper
25 changes: 25 additions & 0 deletions .travis.yml
@@ -0,0 +1,25 @@
osx_image: xcode611
language: objective-c

cache:
- bundler

podfile:
- Example/Podfile

before_script:
- make ci

install:
- bundle install --jobs=3 --retry=3 --deployment --path=${BUNDLE_PATH:-vendor.bundle}
- bundle exec pod install

script:
- make test
- make lint

notifications:
slack:
secure: "dUdDrioG0XXN2XQCVECpTrQjiEPj6FPnSxL5hP71vza2McmBv8KlaPbBdgcq0d9TWYkW6Xt8IehOf6sNLd2Sfa31UoCw3G+6HNqWP7/ThQZKEgl/GiLp1LiFcLqP+Ys87qf8Od6SyLLr7oVWlAkhmsgcUrUQGTLTHBvNrlqs1II="

after_success: slather
@@ -0,0 +1,98 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "0510"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "B87A99EB19A4D2CD00D12CD4"
BuildableName = "RSKImageCropperExample.app"
BlueprintName = "RSKImageCropperExample"
ReferencedContainer = "container:RSKImageCropperExample.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 = "B87A9A0619A4D2CD00D12CD4"
BuildableName = "RSKImageCropperExampleTests.xctest"
BlueprintName = "RSKImageCropperExampleTests"
ReferencedContainer = "container:RSKImageCropperExample.xcodeproj">
</BuildableReference>
</TestableReference>
</Testables>
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "B87A99EB19A4D2CD00D12CD4"
BuildableName = "RSKImageCropperExample.app"
BlueprintName = "RSKImageCropperExample"
ReferencedContainer = "container:RSKImageCropperExample.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 = "B87A99EB19A4D2CD00D12CD4"
BuildableName = "RSKImageCropperExample.app"
BlueprintName = "RSKImageCropperExample"
ReferencedContainer = "container:RSKImageCropperExample.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
<AdditionalOptions>
</AdditionalOptions>
</LaunchAction>
<ProfileAction
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
buildConfiguration = "Release"
debugDocumentVersioning = "YES">
<BuildableProductRunnable
runnableDebuggingMode = "0">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "B87A99EB19A4D2CD00D12CD4"
BuildableName = "RSKImageCropperExample.app"
BlueprintName = "RSKImageCropperExample"
ReferencedContainer = "container:RSKImageCropperExample.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Release"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>
8 changes: 8 additions & 0 deletions Gemfile
@@ -0,0 +1,8 @@
source 'https://rubygems.org'

gem 'cocoapods', :git => 'https://github.com/CocoaPods/CocoaPods.git'

gem 'fui', '~> 0.3.0'
gem 'xcpretty'
gem 'second_curtain', '~> 0.2.3'
gem 'coveralls', require: false
27 changes: 27 additions & 0 deletions Makefile
@@ -0,0 +1,27 @@
WORKSPACE = Example/RSKImageCropperExample.xcworkspace
SCHEME = RSKImageCropperExample
CONFIGURATION = Release
DEVICE_HOST = platform='iOS Simulator',OS='7.1',name='iPhone 4s'

.PHONY: all build ci clean test lint

all: ci

build:
set -o pipefail && xcodebuild -workspace $(WORKSPACE) -scheme $(SCHEME) -configuration '$(CONFIGURATION)' -sdk iphonesimulator -destination $(DEVICE_HOST) build | bundle exec xcpretty -c

clean:
xcodebuild -workspace $(WORKSPACE) -scheme $(SCHEME) -configuration '$(CONFIGURATION)' clean

test:
set -o pipefail && xcodebuild -workspace $(WORKSPACE) -scheme $(SCHEME) -configuration Debug test -sdk iphonesimulator -destination $(DEVICE_HOST) | bundle exec second_curtain | bundle exec xcpretty -c --test

lint:
bundle exec fui --path Example/RSKImageCropper find

ci: CONFIGURATION = Debug
ci: build

bundler:
gem install bundler
bundle install

0 comments on commit 5c1c432

Please sign in to comment.