diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..a3a37e1 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,7 @@ +language: ruby +rvm: + - 1.9.3 + - 2.0.0 + - 2.1.2 + +script: bundle exec rake cuke_slicer:ci_build diff --git a/Gemfile b/Gemfile index 0d9ef5d..a750500 100644 --- a/Gemfile +++ b/Gemfile @@ -2,3 +2,5 @@ source 'https://rubygems.org' # Specify your gem's dependencies in cuke_slicer.gemspec gemspec + +gem 'coveralls', require: false, :group => :development diff --git a/README.md b/README.md index aedf489..e5fce24 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,18 @@ # CukeSlicer +Gem Version + +Dependency Status + +Project License + +Build Status + +Coverage Status + +Code Quality + + The cuke_slicer gem provides an easy and programmatic way to divide a Cucumber test suite into granular test cases that can then be dealt with on an individual basis. Often this means handing them off to a distributed testing system in order to parallelize test execution. diff --git a/Rakefile b/Rakefile index 72beb99..976d246 100644 --- a/Rakefile +++ b/Rakefile @@ -1,6 +1,7 @@ require "bundler/gem_tasks" require 'cucumber/rake/task' require 'rspec/core/rake_task' +require 'coveralls/rake/task' def set_cucumber_options(options) @@ -43,6 +44,9 @@ namespace 'cuke_slicer' do Rake::Task['cuke_slicer:cucumber:tests'].invoke(args[:command_options]) end + Coveralls::RakeTask.new + task :ci_build => [:clear_coverage, :test_everything, 'coveralls:push'] + end