From 3f561816bf2f1fc939141f7f9229e2d82cdf54a0 Mon Sep 17 00:00:00 2001 From: Erik Michaels-Ober Date: Thu, 16 Jan 2014 05:00:52 +0100 Subject: [PATCH] Enforce code coverage minimums --- .travis.yml | 29 ++++++++++++++++++++++++----- spec/helper.rb | 5 ++++- 2 files changed, 28 insertions(+), 6 deletions(-) diff --git a/.travis.yml b/.travis.yml index 81896cf..e8cbd90 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,3 +1,8 @@ +before_install: + - gem update bundler + - bundle --version + - gem update --system 2.1.11 + - gem --version bundler_args: --without development gemfile: - Gemfile @@ -9,14 +14,28 @@ rvm: - 1.9.3 - 2.0.0 - 2.1.0 - - jruby-18mode - - jruby-19mode - - jruby-20mode - - jruby-21mode - - jruby-head - rbx - ruby-head matrix: + include: + - rvm: jruby-18mode + env: JRUBY_OPTS="$JRUBY_OPTS --debug" + gemfile: Gemfile + - rvm: jruby-18mode + env: JRUBY_OPTS="$JRUBY_OPTS --debug" + gemfile: Gemfile.rack-1.3.x + - rvm: jruby-19mode + env: JRUBY_OPTS="$JRUBY_OPTS --debug" + gemfile: Gemfile + - rvm: jruby-19mode + env: JRUBY_OPTS="$JRUBY_OPTS --debug" + gemfile: Gemfile.rack-1.3.x + - rvm: jruby-head + env: JRUBY_OPTS="$JRUBY_OPTS --debug" + gemfile: Gemfile + - rvm: jruby-head + env: JRUBY_OPTS="$JRUBY_OPTS --debug" + gemfile: Gemfile.rack-1.3.x allow_failures: - rvm: jruby-head - rvm: ruby-head diff --git a/spec/helper.rb b/spec/helper.rb index 621512c..3386eac 100644 --- a/spec/helper.rb +++ b/spec/helper.rb @@ -5,7 +5,10 @@ SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[ SimpleCov::Formatter::HTMLFormatter, Coveralls::SimpleCov::Formatter ] -SimpleCov.start +SimpleCov.start do + add_filter '/spec/' + minimum_coverage(93.05) +end require 'rspec' require 'rack/test'