Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[CI / Coverage] Travis, Coveralls, Slather.
- Loading branch information
1 parent
9c8e9db
commit 5c1c432
Showing
5 changed files
with
161 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
coverage_service: coveralls | ||
xcodeproj: Example/RSKImageCropperExample.xcodeproj | ||
source_directory: RSKImageCropper |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
98 changes: 98 additions & 0 deletions
98
...e/RSKImageCropperExample.xcodeproj/xcshareddata/xcschemes/RSKImageCropperExample.xcscheme
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |