diff --git a/.slather.yml b/.slather.yml new file mode 100644 index 0000000..aad7de4 --- /dev/null +++ b/.slather.yml @@ -0,0 +1,3 @@ +coverage_service: coveralls +xcodeproj: Example/RSKImageCropperExample.xcodeproj +source_directory: RSKImageCropper diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..da353c4 --- /dev/null +++ b/.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 diff --git a/Example/RSKImageCropperExample.xcodeproj/xcshareddata/xcschemes/RSKImageCropperExample.xcscheme b/Example/RSKImageCropperExample.xcodeproj/xcshareddata/xcschemes/RSKImageCropperExample.xcscheme new file mode 100644 index 0000000..873e2e5 --- /dev/null +++ b/Example/RSKImageCropperExample.xcodeproj/xcshareddata/xcschemes/RSKImageCropperExample.xcscheme @@ -0,0 +1,98 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Gemfile b/Gemfile new file mode 100644 index 0000000..eafa6c9 --- /dev/null +++ b/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 diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..a5547f2 --- /dev/null +++ b/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