Adding "rake multiruby" task

This commit is contained in:
Bryan Helmkamp 2009-06-15 00:16:42 -04:00
parent d9de87c41f
commit ae6e3dbfc1
1 changed files with 27 additions and 1 deletions

View File

@ -86,6 +86,32 @@ task :docs => :clobber_docs do
system "hanna --title 'Webrat #{Webrat::VERSION} API Documentation'"
end
desc "Run everything against multiruby"
task :multiruby do
result = system "multiruby -S rake spec"
raise "Multiruby tests failed" unless result
Dir.chdir "spec/integration/rails" do
result = system "multiruby -S rake test_unit:rails"
raise "Rails integration tests failed" unless result
end
Dir.chdir "spec/integration/merb" do
result = system "multiruby -S rake spec"
raise "Merb integration tests failed" unless result
end
Dir.chdir "spec/integration/sinatra" do
result = system "multiruby -S rake test"
raise "Sinatra integration tests failed" unless result
end
Dir.chdir "spec/integration/rack" do
result = system "multiruby -S rake test"
raise "Rack integration tests failed" unless result
end
end
desc "Run specs using jruby"
task "spec:jruby" do
result = system "jruby -S rake spec"