Permalink
Browse files

CI: Fix coverage on Ruby 1.8.7

  • Loading branch information...
1 parent 7f4116f commit 67ddb13accc07eef6642fecabd87340d96346401 @fabiopelosin fabiopelosin committed Jul 20, 2014
Showing with 14 additions and 30 deletions.
  1. +7 −3 Gemfile
  2. +2 −16 Gemfile.lock
  3. +5 −11 spec/spec_helper.rb
View
10 Gemfile
@@ -3,15 +3,19 @@ source 'http://rubygems.org'
gemspec
group :development do
- gem 'coveralls', :require => false
gem 'rake', '~> 10.1.0' # Ruby 1.8.7
- gem "mime-types", "< 2.0" # Ruby 1.8.7
+ gem 'mime-types', '< 2.0' # Ruby 1.8.7
gem 'mocha'
gem 'bacon'
gem 'mocha-on-bacon'
gem 'prettybacon'
gem 'kicker'
- gem 'codeclimate-test-reporter', :require => nil
+
+ if RUBY_VERSION >= '1.9.3'
+ gem 'codeclimate-test-reporter', :require => nil
+ # Bug: https://github.com/colszowka/simplecov/issues/281
+ gem 'simplecov', '< 0.9' # Ruby 1.8.7
+ end
end
group :documentation do
View
18 Gemfile.lock
@@ -15,12 +15,6 @@ GEM
codeclimate-test-reporter (0.3.0)
simplecov (>= 0.7.1, < 1.0.0)
colored (1.2)
- coveralls (0.7.0)
- multi_json (~> 1.3)
- rest-client
- simplecov (>= 0.7)
- term-ansicolor
- thor
docile (1.1.5)
ffi (1.9.3)
github-markup (1.2.1)
@@ -40,7 +34,6 @@ GEM
mocha-on-bacon (0.2.2)
mocha (>= 0.13.0)
multi_json (1.10.1)
- netrc (0.7.7)
notify (0.5.2)
posix-spawn (0.3.8)
prettybacon (0.0.2)
@@ -55,18 +48,11 @@ GEM
rb-kqueue (0.2.3)
ffi (>= 0.5.0)
redcarpet (3.1.2)
- rest-client (1.7.2)
- mime-types (>= 1.16, < 3.0)
- netrc (~> 0.7)
- simplecov (0.9.0)
+ simplecov (0.8.2)
docile (~> 1.1.0)
multi_json
simplecov-html (~> 0.8.0)
simplecov-html (0.8.0)
- term-ansicolor (1.3.0)
- tins (~> 1.0)
- thor (0.19.1)
- tins (1.3.0)
yajl-ruby (1.1.0)
yard (0.8.7.4)
@@ -76,7 +62,6 @@ PLATFORMS
DEPENDENCIES
bacon
codeclimate-test-reporter
- coveralls
github-markup
kicker
mime-types (< 2.0)
@@ -86,5 +71,6 @@ DEPENDENCIES
pygments.rb
rake (~> 10.1.0)
redcarpet
+ simplecov (< 0.9)
xcodeproj!
yard
View
16 spec/spec_helper.rb
@@ -1,18 +1,12 @@
# Set up coverage analysis
#-----------------------------------------------------------------------------#
-if ENV['CI'] || ENV['GENERATE_COVERAGE']
- require 'simplecov'
- require 'coveralls'
-
- if ENV['CI']
- SimpleCov.formatter = Coveralls::SimpleCov::Formatter
- elsif ENV['GENERATE_COVERAGE']
- SimpleCov.formatter = SimpleCov::Formatter::HTMLFormatter
- end
- SimpleCov.start do
- add_filter "/spec_helper/"
+if RUBY_VERSION >= '1.9.3'
+ require 'codeclimate-test-reporter'
+ CodeClimate::TestReporter.configure do |config|
+ config.logger.level = Logger::WARN
end
+ CodeClimate::TestReporter.start
end
# Set up

0 comments on commit 67ddb13

Please sign in to comment.