From 0c94a141074a3b87c1295d53949f654e19b66291 Mon Sep 17 00:00:00 2001 From: John Bintz Date: Fri, 3 Jun 2011 09:27:44 -0400 Subject: [PATCH] platforms test --- Rakefile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Rakefile b/Rakefile index 2c42f66..efa7766 100644 --- a/Rakefile +++ b/Rakefile @@ -6,13 +6,19 @@ namespace :spec do task :platforms do current = %x{rvm-prompt v} + fail = false %w{1.8.7 1.9.2 ree}.each do |version| puts "Switching to #{version}" system %{rvm #{version}} system %{bundle exec rspec spec} - break if $?.exitstatus != 0 + if $?.exitstatus != 0 + fail = true + break + end end system %{rvm #{current}} + + exit (fail ? 1 : 0) end end