Permalink
Switch branches/tags
Find file
Fetching contributors…
Cannot retrieve contributors at this time
26 lines (20 sloc) 536 Bytes
include Rake::DSL if defined?(Rake::DSL)
require 'bundler'
Bundler::GemHelper.install_tasks
require 'rspec/core/rake_task'
desc 'Push everywhere!'
task :push_everywhere do
system %{git push origin master}
system %{git push guard master}
end
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 ruby"
system %{#{prefix} bundle}
system %{#{prefix} bundle exec rake spec}
exit $?.exitstatus
end
end
task :default => 'spec:platforms'