2011-06-18 16:38:15 +00:00
|
|
|
include Rake::DSL if defined?(Rake::DSL)
|
|
|
|
|
2011-06-17 20:01:49 +00:00
|
|
|
require 'bundler'
|
|
|
|
Bundler::GemHelper.install_tasks
|
2011-06-18 22:20:49 +00:00
|
|
|
require 'rspec/core/rake_task'
|
|
|
|
|
|
|
|
RSpec::Core::RakeTask.new(:spec)
|
|
|
|
|
|
|
|
namespace :spec do
|
|
|
|
desc "Run on three Rubies"
|
|
|
|
task :platforms do
|
2011-08-04 15:27:27 +00:00
|
|
|
prefix = "rvm 1.8.7,1.9.2,ree ruby"
|
|
|
|
system %{#{prefix} bundle}
|
|
|
|
system %{#{prefix} bundle exec rake spec}
|
2011-08-04 15:25:12 +00:00
|
|
|
exit $?.exitstatus
|
2011-06-18 22:20:49 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
task :default => 'spec:platforms'
|
|
|
|
|