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:
parent
78e03056e8
commit
a216252fe0
2 changed files with 3 additions and 6 deletions
|
|
@ -9,10 +9,8 @@ rvm:
|
||||||
|
|
||||||
env:
|
env:
|
||||||
- DB=postgres BUILD_TYPE=cucumber
|
- DB=postgres BUILD_TYPE=cucumber
|
||||||
- DB=postgres BUILD_TYPE=oauth-cucumber
|
|
||||||
- DB=postgres BUILD_TYPE=other
|
- DB=postgres BUILD_TYPE=other
|
||||||
- DB=mysql BUILD_TYPE=cucumber
|
- DB=mysql BUILD_TYPE=cucumber
|
||||||
- DB=mysql BUILD_TYPE=oauth-cucumber
|
|
||||||
- DB=mysql BUILD_TYPE=other
|
- DB=mysql BUILD_TYPE=other
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -6,16 +6,15 @@ namespace :ci do
|
||||||
puts "Running cucumber features..."
|
puts "Running cucumber features..."
|
||||||
system("export DISPLAY=:99.0 && bundle exec rake cucumber")
|
system("export DISPLAY=:99.0 && bundle exec rake cucumber")
|
||||||
raise "Cucumber failed!" unless $?.exitstatus == 0
|
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
|
else
|
||||||
["rspec spec", "rake jasmine:ci"].each do |cmd|
|
["rspec spec", "rake jasmine:ci"].each do |cmd|
|
||||||
puts "Starting to run #{cmd}..."
|
puts "Starting to run #{cmd}..."
|
||||||
system("export DISPLAY=:99.0 && bundle exec #{cmd}")
|
system("export DISPLAY=:99.0 && bundle exec #{cmd}")
|
||||||
raise "#{cmd} failed!" unless $?.exitstatus == 0
|
raise "#{cmd} failed!" unless $?.exitstatus == 0
|
||||||
end
|
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
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue