Skip to content

Commit

Permalink
Try starting xvfb through services
Browse files Browse the repository at this point in the history
It seems the default Travis builds run on Xenial now instead of Trusty.

https://docs.travis-ci.com/user/gui-and-headless-browsers/#using-services
  • Loading branch information
bjuppa committed May 10, 2019
1 parent 443b91d commit 17a1966
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ matrix:
env: LARAVEL='5.8.*'
fast_finish: true

services:
- xvfb

addons:
chrome: stable

Expand All @@ -30,8 +33,6 @@ before_script:
- if [[ $COVERAGE == "" ]]; then phpenv config-rm xdebug.ini; fi
- composer config discard-changes true
- ./vendor/bin/dusk-updater update
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
- ./vendor/laravel/dusk/bin/chromedriver-linux &
- google-chrome-stable --headless --disable-gpu --remote-debugging-port=9222 http://localhost &

Expand Down

0 comments on commit 17a1966

Please sign in to comment.