Adding "rake multiruby" task
This commit is contained in:
parent
d9de87c41f
commit
ae6e3dbfc1
26
Rakefile
26
Rakefile
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue