Permalink
Browse files

Fix travis_ci task status exiting and legacy mode

  • Loading branch information...
1 parent 095fb4b commit afd117903e4f44954b88d25a6216189a7ec3cb55 @lsegal committed Jun 14, 2011
Showing with 5 additions and 3 deletions.
  1. +5 −3 Rakefile
View
@@ -32,16 +32,18 @@ task :suite do
end
task :travis_ci do
+ status = 0
ENV['SUITE'] = '1'
ENV['CI'] = '1'
system "bundle exec rake specs"
- exit(1) if $?.to_i != 0
- if RUBY_VERSION >= '1.8.7' && RUBY_PLATFORM != 'java'
+ status = 1 if $?.to_i != 0
+ if RUBY_VERSION >= '1.9' && RUBY_PLATFORM != 'java'
puts ""
puts "Running specs with in legacy mode"
system "bundle exec rake specs LEGACY=1"
- exit(1) if $?.to_i != 0
+ status = 1 if $?.to_i != 0
end
+ exit(status)
end
begin

0 comments on commit afd1179

Please sign in to comment.