Use new way to run xvfb on Travis CI (#658)

This commit is contained in:
wvengen 2019-05-03 13:48:06 +02:00
parent 22e1748f81
commit b823c7e2b6

View file

@ -3,17 +3,18 @@ sudo: false
rvm:
- 2.3
services:
- xvfb
- mysql
- redis-server
addons:
apt:
packages:
- libmagic-dev
- metacity
- qt5-default
- libqt5webkit5-dev
- gstreamer1.0-plugins-base
- gstreamer1.0-tools
env: COVERALLS=1
before_install:
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
cache: bundler
bundler_args:
- "--without development --deployment --jobs=3 --retry=3"
@ -23,4 +24,4 @@ before_script:
- "mysql -e 'grant all on foodsoft_test.* to travis;'"
- 'printf "test:\n adapter: mysql2\n database: foodsoft_test\n username: travis\n encoding: utf8\n" >config/database.yml'
- 'bundle exec rake db:schema:load RAILS_ENV=test'
script: bundle exec rake rspec-rerun:spec
script: xvfb-run -a bundle exec rake rspec-rerun:spec