Added Coveralls support.
This commit is contained in:
parent
5242e88985
commit
1281f00bf0
|
@ -3,6 +3,7 @@
|
|||
.idea
|
||||
Gemfile.lock
|
||||
gemfiles/*.lock
|
||||
coverage/*
|
||||
pkg/*
|
||||
|
||||
doc
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
= Kaminari {<img src="https://travis-ci.org/amatsuda/kaminari.png"/>}[http://travis-ci.org/amatsuda/kaminari] {<img src="https://codeclimate.com/github/amatsuda/kaminari.png" />}[https://codeclimate.com/github/amatsuda/kaminari]
|
||||
= Kaminari {<img src="https://travis-ci.org/amatsuda/kaminari.png"/>}[http://travis-ci.org/amatsuda/kaminari] {<img src="https://codeclimate.com/github/amatsuda/kaminari.png" />}[https://codeclimate.com/github/amatsuda/kaminari] {<img src="https://coveralls.io/repos/amatsuda/kaminari/badge.png" />}[https://coveralls.io/r/amatsuda/kaminari]
|
||||
|
||||
A Scope & Engine based, clean, powerful, customizable and sophisticated paginator for modern web app frameworks and ORMs
|
||||
|
||||
|
|
5
Rakefile
5
Rakefile
|
@ -5,12 +5,15 @@ Bundler::GemHelper.install_tasks
|
|||
|
||||
require 'rspec/core'
|
||||
require 'rspec/core/rake_task'
|
||||
require 'coveralls/rake/task'
|
||||
|
||||
Coveralls::RakeTask.new
|
||||
|
||||
RSpec::Core::RakeTask.new(:spec) do |spec|
|
||||
spec.pattern = FileList['spec/**/*_spec.rb']
|
||||
end
|
||||
|
||||
task :default => "spec:all"
|
||||
task :default => ["spec:all", "coveralls:push"]
|
||||
|
||||
namespace :spec do
|
||||
%w(active_record_edge active_record_40 active_record_32 active_record_31 active_record_30 data_mapper_12 mongoid_31 mongoid_30 mongoid_24 mongo_mapper sinatra_13 sinatra_14).each do |gemfile|
|
||||
|
|
|
@ -33,4 +33,5 @@ Gem::Specification.new do |s|
|
|||
s.add_development_dependency 'capybara', ['>= 1.0']
|
||||
s.add_development_dependency 'database_cleaner', ['~> 1.2.0']
|
||||
s.add_development_dependency 'rdoc', ['>= 0']
|
||||
s.add_development_dependency 'coveralls', ['>= 0']
|
||||
end
|
||||
|
|
|
@ -11,6 +11,10 @@ Bundler.require
|
|||
|
||||
require 'capybara/rspec'
|
||||
require 'database_cleaner'
|
||||
require 'coveralls'
|
||||
|
||||
# Enable Coveralls
|
||||
Coveralls.wear_merged!
|
||||
|
||||
# Simulate a gem providing a subclass of ActiveRecord::Base before the Railtie is loaded.
|
||||
require 'fake_gem' if defined? ActiveRecord
|
||||
|
|
Loading…
Reference in New Issue