Between Tuesday August 20th, 5:00pm and Thursday August 22nd, 8:00am git.uwaterloo.ca will be down for an upgrade to version 10.8.7.

0bfa860f by Sylvester Keil

add coverage

1 parent 1dba31b2
service_name: travis-ci
......@@ -2,3 +2,4 @@ Gemfile.lock
demo
**/*.swp
.bundle
coverage
......
SimpleCov.start do
add_filter 'features/'
end
language: ruby
bundler_args: --without debug
script: bundle exec rake test_with_coveralls
rvm:
- 2.1.0
- 2.0.0
......
source 'https://rubygems.org'
gemspec
group 'development' do
group :development do
gem 'rake'
gem 'redgreen', '~> 1.2'
gem 'shoulda', '~> 3.5'
......@@ -13,6 +13,10 @@ group 'development' do
gem 'launchy', '~> 2.1.2'
gem 'unicode_utils'
gem 'simplecov', '~>0.8', :require => false
gem 'rubinius-coverage', :platform => :rbx
gem 'coveralls', :require => false
end
group :debug do
......
......@@ -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).
[![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)
Installation
......
......@@ -15,6 +15,10 @@ Cucumber::Rake::Task.new(:features)
task :default => [:features]
require 'coveralls/rake/task'
Coveralls::RakeTask.new
task :test_with_coveralls => [:features, 'coveralls:push']
task :release do |t|
system "gem build jekyll-scholar.gemspec"
system "git tag v#{Jekyll::Scholar::VERSION}"
......
require 'rr'
require 'test/unit'
require 'jekyll/scholar'
begin
require 'simplecov'
require 'coveralls' if ENV['CI']
rescue LoadError
# ignore
end
begin
require 'debugger'
......@@ -9,6 +11,10 @@ rescue LoadError
# ignore
end
require 'rr'
require 'test/unit'
require 'jekyll/scholar'
World do
include Test::Unit::Assertions
......