1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

trying one more times to disable coveralls on 1.9.2

This commit is contained in:
Kyle Rames 2013-07-25 10:47:02 -05:00
parent 332321c312
commit ee74d41940
2 changed files with 8 additions and 9 deletions

View file

@ -189,11 +189,10 @@ require "tasks/changelog_task"
Fog::Rake::ChangelogTask.new
task :coveralls_push_workaround do
# use_coveralls = ( Gem::Version.new(RUBY_VERSION) > Gem::Version.new('1.9.2'))
# # ENV['COVERAGE'] = 'false' if ( Gem::Version.new(RUBY_VERSION) <= Gem::Version.new('1.9.2'))
# if (ENV['COVERAGE'] != 'false') && use_coveralls
# require 'coveralls/rake/task'
# Coveralls::RakeTask.new
# Rake::Task["coveralls:push"].invoke
# end
use_coveralls = (Gem::Version.new(RUBY_VERSION) > Gem::Version.new('1.9.2'))
if (ENV['COVERAGE'] != 'false') && use_coveralls
require 'coveralls/rake/task'
Coveralls::RakeTask.new
Rake::Task["coveralls:push"].invoke
end
end

View file

@ -1,7 +1,7 @@
require 'simplecov'
require 'coveralls'
unless ENV['COVERAGE'] == 'false'
if ENV['COVERAGE'] != 'false' && RUBY_VERSION != "1.9.2"
require 'coveralls'
SimpleCov.command_name "shindo:#{Process.pid.to_s}"
SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[
SimpleCov::Formatter::HTMLFormatter,