CI has decided it wants a proper shell to launch the virtual display. So FINE. It can have one.
This commit is contained in:
parent
d5a4de58b3
commit
034d566564
1 changed files with 5 additions and 2 deletions
|
|
@ -1,10 +1,13 @@
|
|||
namespace :cruise do
|
||||
desc "Run all specs and features"
|
||||
task :cruise => :environment do
|
||||
system('/etc/init.d/xvfb start')
|
||||
puts "Starting virtual display..."
|
||||
`sh -e /etc/init.d/xvfb start`
|
||||
puts "Starting specs..."
|
||||
system('export DISPLAY=:99.0 && export SELENIUM_SERVER_PORT=53809 && bundle exec rake')
|
||||
exit_status = $?.exitstatus
|
||||
system('/etc/init.d/xvfb stop')
|
||||
puts "Stopping virtual display..."
|
||||
`sh -e /etc/init.d/xvfb stop`
|
||||
raise "tests failed!" unless exit_status == 0
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Reference in a new issue