forked from georgi/rack_dav
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
36 lines (25 loc) · 763 Bytes
/
Rakefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
require 'bundler'
require "rspec/core/rake_task"
Bundler::GemHelper.install_tasks
task :default => :spec
# Run all the specs in the /spec folder
RSpec::Core::RakeTask.new
namespace :spec do
desc "Run RSpec against all Ruby versions"
task :rubies => "spec:rubies:default"
namespace :rubies do
RUBIES = %w( 1.8.7-p330 1.9.2-p0 jruby-1.5.6 ree-1.8.7-2010.02 )
task :default => :ensure_rvm do
sh "rvm #{RUBIES.join(",")} rake default"
end
task :ensure_rvm do
File.exist?(File.expand_path("~/.rvm/scripts/rvm")) || abort("RVM is not available")
end
RUBIES.each do |ruby|
desc "Run RSpec against Ruby #{ruby}"
task ruby => :ensure_rvm do
sh "rvm #{ruby} rake default"
end
end
end
end