From c524d5b4c971137ef1cbbdc5d994477f3ea8573f Mon Sep 17 00:00:00 2001 From: Eric Kessler Date: Fri, 22 May 2015 12:37:23 -0400 Subject: [PATCH] Badges added to Readme. Added badges for code quality, coverage, build status, licence type, gem dependencies, and gem version.. --- .travis.yml | 7 +++++++ Gemfile | 2 ++ README.md | 13 +++++++++++++ Rakefile | 4 ++++ 4 files changed, 26 insertions(+) create mode 100644 .travis.yml 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