guard-rocco/Rakefile
2011-11-15 11:23:01 -05:00

21 lines
418 B
Ruby

include Rake::DSL if defined?(Rake::DSL)
require 'bundler'
Bundler::GemHelper.install_tasks
require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new(:spec)
namespace :spec do
desc "Run on three Rubies"
task :platforms do
prefix = "rvm 1.8.7,1.9.2,ree,1.9.3 do"
system %{#{prefix} bundle}
system %{#{prefix} bundle exec rake spec}
exit $?.exitstatus
end
end
task :default => 'spec:platforms'