Skip to content

Commit

Permalink
re-enable rcov and revert 2e8d687, it is the test suite that is broke…
Browse files Browse the repository at this point in the history
…n, not rcov
  • Loading branch information
thewoolleyman committed Aug 29, 2009
1 parent 580b5db commit efecd32
Showing 1 changed file with 15 additions and 19 deletions.
34 changes: 15 additions & 19 deletions lib/tasks/cruise.rake
Expand Up @@ -16,24 +16,20 @@ task :cruise => ['geminstaller'] do
out = ENV['CC_BUILD_ARTIFACTS']
mkdir_p out unless File.directory? out if out

# Rcov is disabled for now, it hangs on some environments
# if RUBY_VERSION == '1.8.7'
# puts '!!!!!! Skipping rcov on Ruby 1.8.7'
# Rake::Task["test:units"].invoke
# Rake::Task["test:functionals"].invoke
# else
# ENV['SHOW_ONLY'] = 'models,lib,helpers'
# Rake::Task["test:units:rcov"].invoke
# mv 'coverage/units', "#{out}/unit test coverage" if out
#
# ENV['SHOW_ONLY'] = 'controllers'
# Rake::Task["test:functionals:rcov"].invoke
# mv 'coverage/functionals', "#{out}/functional test coverage" if out
#
# Rake::Task["test:integration"].invoke
# end
Rake::Task["test:units"].invoke
Rake::Task["test:functionals"].invoke
Rake::Task["test:integration"].invoke
if RUBY_VERSION == '1.8.7'
puts '!!!!!! Skipping rcov on Ruby 1.8.7'
Rake::Task["test:units"].invoke
Rake::Task["test:functionals"].invoke
else
ENV['SHOW_ONLY'] = 'models,lib,helpers'
Rake::Task["test:units:rcov"].invoke
mv 'coverage/units', "#{out}/unit test coverage" if out

ENV['SHOW_ONLY'] = 'controllers'
Rake::Task["test:functionals:rcov"].invoke
mv 'coverage/functionals', "#{out}/functional test coverage" if out

Rake::Task["test:integration"].invoke
end

end

0 comments on commit efecd32

Please sign in to comment.