guard-rails/Rakefile

26 lines
562 B
Ruby
Raw Normal View History

2011-06-18 16:40:53 +00:00
include Rake::DSL if defined?(Rake::DSL)
2011-05-27 18:41:07 +00:00
require 'bundler'
Bundler::GemHelper.install_tasks
2011-06-06 13:25:50 +00:00
require 'rspec/core/rake_task'
2011-06-03 13:26:03 +00:00
2011-06-18 16:40:53 +00:00
desc 'Push everywhere!'
task :push_everywhere do
system %{git push origin master}
system %{git push guard master}
end
2011-06-06 13:25:50 +00:00
RSpec::Core::RakeTask.new(:spec)
2011-06-05 11:25:55 +00:00
2011-06-03 13:26:03 +00:00
namespace :spec do
desc "Run on three Rubies"
task :platforms do
2012-01-16 14:31:09 +00:00
prefix = "rvm 1.8.7,1.9.2,ree,1.9.3 do"
2011-08-04 15:31:42 +00:00
system %{#{prefix} bundle}
system %{#{prefix} bundle exec rake spec}
2012-01-16 14:31:09 +00:00
exit $?.exitstatus if $?.exitstatus != 0
2011-06-03 13:26:03 +00:00
end
end
2011-06-04 12:33:42 +00:00
task :default => 'spec:platforms'