Commit 0bfa860f authored by Sylvester Keil's avatar Sylvester Keil

add coverage

parent 1dba31b2
service_name: travis-ci
...@@ -2,3 +2,4 @@ Gemfile.lock ...@@ -2,3 +2,4 @@ Gemfile.lock
demo demo
**/*.swp **/*.swp
.bundle .bundle
coverage
SimpleCov.start do
add_filter 'features/'
end
language: ruby language: ruby
bundler_args: --without debug bundler_args: --without debug
script: bundle exec rake test_with_coveralls
rvm: rvm:
- 2.1.0 - 2.1.0
- 2.0.0 - 2.0.0
......
source 'https://rubygems.org' source 'https://rubygems.org'
gemspec gemspec
group 'development' do group :development do
gem 'rake' gem 'rake'
gem 'redgreen', '~> 1.2' gem 'redgreen', '~> 1.2'
gem 'shoulda', '~> 3.5' gem 'shoulda', '~> 3.5'
...@@ -13,6 +13,10 @@ group 'development' do ...@@ -13,6 +13,10 @@ group 'development' do
gem 'launchy', '~> 2.1.2' gem 'launchy', '~> 2.1.2'
gem 'unicode_utils' gem 'unicode_utils'
gem 'simplecov', '~>0.8', :require => false
gem 'rubinius-coverage', :platform => :rbx
gem 'coveralls', :require => false
end end
group :debug do group :debug do
......
...@@ -10,6 +10,7 @@ For additional features you may also want to take a look at ...@@ -10,6 +10,7 @@ For additional features you may also want to take a look at
[jekyll-scholar-extras](https://github.com/jgoodall/jekyll-scholar-extras). [jekyll-scholar-extras](https://github.com/jgoodall/jekyll-scholar-extras).
[![Build Status](https://travis-ci.org/inukshuk/jekyll-scholar.png?branch=master)](https://travis-ci.org/inukshuk/jekyll-scholar) [![Build Status](https://travis-ci.org/inukshuk/jekyll-scholar.png?branch=master)](https://travis-ci.org/inukshuk/jekyll-scholar)
[![Coverage Status](https://coveralls.io/repos/inukshuk/jekyll-scholar/badge.png)](https://coveralls.io/r/inukshuk/jekyll-scholar)
[![Dependency Status](https://gemnasium.com/inukshuk/jekyll-scholar.png)](https://gemnasium.com/inukshuk/jekyll-scholar) [![Dependency Status](https://gemnasium.com/inukshuk/jekyll-scholar.png)](https://gemnasium.com/inukshuk/jekyll-scholar)
Installation Installation
......
...@@ -15,6 +15,10 @@ Cucumber::Rake::Task.new(:features) ...@@ -15,6 +15,10 @@ Cucumber::Rake::Task.new(:features)
task :default => [:features] task :default => [:features]
require 'coveralls/rake/task'
Coveralls::RakeTask.new
task :test_with_coveralls => [:features, 'coveralls:push']
task :release do |t| task :release do |t|
system "gem build jekyll-scholar.gemspec" system "gem build jekyll-scholar.gemspec"
system "git tag v#{Jekyll::Scholar::VERSION}" system "git tag v#{Jekyll::Scholar::VERSION}"
......
require 'rr' begin
require 'test/unit' require 'simplecov'
require 'coveralls' if ENV['CI']
require 'jekyll/scholar' rescue LoadError
# ignore
end
begin begin
require 'debugger' require 'debugger'
...@@ -9,6 +11,10 @@ rescue LoadError ...@@ -9,6 +11,10 @@ rescue LoadError
# ignore # ignore
end end
require 'rr'
require 'test/unit'
require 'jekyll/scholar'
World do World do
include Test::Unit::Assertions include Test::Unit::Assertions
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment