Skip to content

Commit

Permalink
Enforce code coverage minimums
Browse files Browse the repository at this point in the history
  • Loading branch information
sferik committed Jun 25, 2014
1 parent d3ce893 commit 697d81d
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 13 deletions.
7 changes: 3 additions & 4 deletions .travis.yml
Expand Up @@ -11,13 +11,12 @@ env:
rvm:
- 1.9.3
- 2.0.0
- 2.1.1
- rbx-2
- ruby-head
- 2.1
- jruby-19mode
- jruby-head
- rbx-2
- ruby-head
matrix:
allow_failures:
- rvm: jruby-19mode
- rvm: jruby-head
- rvm: ruby-head
22 changes: 13 additions & 9 deletions spec/helper.rb
@@ -1,3 +1,16 @@
require 'simplecov'
require 'coveralls'

SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[
SimpleCov::Formatter::HTMLFormatter,
Coveralls::SimpleCov::Formatter
]

SimpleCov.start do
add_filter '/spec/'
minimum_coverage(89.48)
end

require 'logger'
require 'rspec'

Expand All @@ -8,15 +21,6 @@
require 'delayed_job'
require 'delayed/backend/shared_spec'

require 'simplecov'
require 'coveralls'

SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[
SimpleCov::Formatter::HTMLFormatter,
Coveralls::SimpleCov::Formatter
]
SimpleCov.start

Delayed::Worker.logger = Logger.new('/tmp/dj.log')
ENV['RAILS_ENV'] = 'test'

Expand Down

0 comments on commit 697d81d

Please sign in to comment.