Skip to content

Commit

Permalink
Fix travis_ci task status exiting and legacy mode
Browse files Browse the repository at this point in the history
  • Loading branch information
lsegal committed Jun 14, 2011
1 parent 095fb4b commit afd1179
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit afd1179

Please sign in to comment.