we cause too much load on travis: if you have a fork and use travis please turn it off; run oauth-cucumber inside other build to reduce builds and save (setup) time.

This commit is contained in:
Jonne Hass 2011-11-07 01:38:22 +01:00
parent 78e03056e8
commit a216252fe0
2 changed files with 3 additions and 6 deletions

View file

@ -9,10 +9,8 @@ rvm:
env:
- DB=postgres BUILD_TYPE=cucumber
- DB=postgres BUILD_TYPE=oauth-cucumber
- DB=postgres BUILD_TYPE=other
- DB=mysql BUILD_TYPE=cucumber
- DB=mysql BUILD_TYPE=oauth-cucumber
- DB=mysql BUILD_TYPE=other

View file

@ -6,16 +6,15 @@ namespace :ci do
puts "Running cucumber features..."
system("export DISPLAY=:99.0 && bundle exec rake cucumber")
raise "Cucumber failed!" unless $?.exitstatus == 0
elsif ENV['BUILD_TYPE'] == 'oauth-cucumber'
puts "Running oauth cucumber features..."
system("export DISPLAY=:99.0 && GROUP=oauth bundle exec rake cucumber")
raise "OAuth cucumber failed!" unless $?.exitstatus == 0
else
["rspec spec", "rake jasmine:ci"].each do |cmd|
puts "Starting to run #{cmd}..."
system("export DISPLAY=:99.0 && bundle exec #{cmd}")
raise "#{cmd} failed!" unless $?.exitstatus == 0
end
puts "Running oauth cucumber features..."
system("export DISPLAY=:99.0 && GROUP=oauth bundle exec rake cucumber")
raise "OAuth cucumber failed!" unless $?.exitstatus == 0
end
end