Skip to content

Commit

Permalink
Added spec:portability task to test Guard::Compass on Ruby 1.8.6, 1.8…
Browse files Browse the repository at this point in the history
….7 and 1.9.2
  • Loading branch information
Rémy Coutable committed Dec 2, 2010
1 parent d610c70 commit 6d33011
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions Rakefile
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -5,3 +5,17 @@ require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new(:spec) RSpec::Core::RakeTask.new(:spec)
task :default => :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.