Browse files

Added spec:portability task to test Guard::Compass on Ruby 1.8.6, 1.8…

….7 and 1.9.2
  • Loading branch information...
1 parent d610c70 commit 6d330112a9afea14ef6ed7f0e82eb173826d1eaa Rémy Coutable committed Dec 2, 2010
Showing with 14 additions and 0 deletions.
  1. +14 −0 Rakefile
View
14 Rakefile
@@ -5,3 +5,17 @@ require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new(:spec)
task :default => :spec
+namespace(:spec) do
+ desc "Run all specs on multiple ruby versions (requires rvm)"
+ task(:portability) do
+ %w[1.8.6 1.8.7 1.9.2].each do |version|
+ system <<-BASH
+ bash -c 'source ~/.rvm/scripts/rvm;
+ rvm #{version};
+ echo "--------- version #{version} ----------\n";
+ bundle install;
+ rake spec'
+ BASH
+ end
+ end
+end

0 comments on commit 6d33011

Please sign in to comment.