Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Run RSpec against multiple platforms.

  • Loading branch information...
commit 906435949b76d700cc098f1932020dad8ba0dfa3 1 parent 49283c3
@weppos weppos authored
Showing with 28 additions and 1 deletion.
  1. +2 −1  Gemfile.lock
  2. +26 −0 Rakefile
View
3  Gemfile.lock
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
- rack_dav (0.1.3)
+ rack_dav (0.2.0.dev1295606841)
builder
rack
@@ -21,6 +21,7 @@ GEM
rspec-mocks (2.4.0)
PLATFORMS
+ java
ruby
DEPENDENCIES
View
26 Rakefile
@@ -8,3 +8,29 @@ 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
Please sign in to comment.
Something went wrong with that request. Please try again.