rake task starts a virtual framebuffer before running tests, stops it after
This commit is contained in:
parent
ebef212079
commit
4e3e6d9562
1 changed files with 5 additions and 1 deletions
|
|
@ -1,5 +1,9 @@
|
|||
desc "Run all specs and features"
|
||||
task :ci => [:environment] do
|
||||
system "export DISPLAY=:99"
|
||||
system "/etc/init.d/xvfb start"
|
||||
system "bundle exec rake"
|
||||
raise "tests failed!" unless $?.exitstatus == 0
|
||||
exit_status = $?.exitstatus
|
||||
system "/etc/init.d/xvfb stop"
|
||||
raise "tests failed!" unless exit_status == 0
|
||||
end
|
||||
Loading…
Reference in a new issue