Skip to content

Instantly share code, notes, and snippets.

@exviva
Last active June 16, 2016 13:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save exviva/5354444 to your computer and use it in GitHub Desktop.
Save exviva/5354444 to your computer and use it in GitHub Desktop.
unless ENV.include?('CI')
ENV['DISPLAY'] = ':99'
pid = Process.spawn('Xvfb :99 -ac', out: '/dev/null', err: '/dev/null')
at_exit { Process.kill(:SIGINT, pid) }
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment