Skip to content

Commit

Permalink
Add essential gems/raketasks and spec coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinjalbert committed Feb 23, 2015
1 parent 2072228 commit 24f6a50
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 1 deletion.
11 changes: 11 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,14 @@ source 'https://rubygems.org'

# Specify your gem's dependencies in git_evolution.gemspec
gemspec

group :test do
gem 'simplecov'
gem 'coveralls', require: false
gem 'rspec'
end

group :development do
gem 'pry-byebug'
gem 'rubocop'
end
5 changes: 4 additions & 1 deletion Rakefile
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
require "bundler/gem_tasks"
require 'bundler/gem_tasks'
require 'rspec/core/rake_task'
require 'rake/clean'

CLOBBER.include('coverage')
16 changes: 16 additions & 0 deletions spec/support/coverage.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
begin
if ENV['CI']
require 'coveralls'
Coveralls.wear!
elsif ENV['COVERAGE']
require 'simplecov'
end

if ENV['CI'] || ENV['COVERAGE']
SimpleCov.start do
add_filter '/spec/'
end
end
rescue LoadError => e
warn(e)
end

0 comments on commit 24f6a50

Please sign in to comment.