diff --git a/.gitignore b/.gitignore index 2c26e26..c25cb9c 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ /.bundle /.ruby-version /Gemfile.lock +/coverage diff --git a/.travis.yml b/.travis.yml index c4062f3..394d69e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -10,3 +10,7 @@ rvm: - 2.3.0 - 2.4.0 before_install: gem install bundler +addons: + apt: + packages: + - libgmp-dev diff --git a/README.md b/README.md index 92d1148..2e5d852 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Scientist! -A Ruby library for carefully refactoring critical paths. [![Build Status](https://travis-ci.org/github/scientist.svg?branch=master)](https://travis-ci.org/github/scientist) +A Ruby library for carefully refactoring critical paths. [![Build Status](https://travis-ci.org/github/scientist.svg?branch=master)](https://travis-ci.org/github/scientist) [![Coverage Status](https://coveralls.io/repos/github/github/scientist/badge.svg?branch=master)](https://coveralls.io/github/github/scientist?branch=master) ## How do I science? diff --git a/scientist.gemspec b/scientist.gemspec index 339e8fe..73de1bd 100644 --- a/scientist.gemspec +++ b/scientist.gemspec @@ -16,4 +16,5 @@ Gem::Specification.new do |gem| gem.require_paths = ["lib"] gem.add_development_dependency "minitest", "~> 5.8" + gem.add_development_dependency "coveralls", "~> 0.8" end diff --git a/script/test b/script/test index 669a0f0..d63f492 100755 --- a/script/test +++ b/script/test @@ -6,6 +6,7 @@ set -e cd $(dirname "$0")/.. script/bootstrap && ruby -I lib \ -e 'require "bundler/setup"' \ + -e 'require "coveralls"; Coveralls.wear!{ add_filter ".bundle" }' \ -e 'require "minitest/autorun"' \ -e 'require "scientist"' \ -e '(ARGV.empty? ? Dir["test/**/*_test.rb"] : ARGV).each { |f| load f }' -- "$@"