Skip to content

Commit

Permalink
Start xvfb using 'services' rather than a run script. (#109)
Browse files Browse the repository at this point in the history
This is necessary now that Travis has switched from Trusty to Xenial by
default.

(See https://docs.travis-ci.com/user/gui-and-headless-browsers/#using-services)
  • Loading branch information
malcolmr authored Aug 14, 2019
1 parent fdec21c commit 95c0b91
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,11 @@ before_install:
install:
- python setup.py -q install
before_script:
- if [ $CI_TARGET = vim ]; then
export DISPLAY=:99.0;
sh -e /etc/init.d/xvfb start;
elif [ $CI_TARGET = neovim ]; then
- if [ $CI_TARGET = neovim ]; then
eval "$(curl -Ss https://raw.githubusercontent.com/neovim/bot-ci/master/scripts/travis-setup.sh) nightly-x64";
fi
services:
- xvfb
script:
- if [ $CI_TARGET = pytests ]; then
nosetests -v --with-doctest;
Expand Down

0 comments on commit 95c0b91

Please sign in to comment.