Skip to content

Commit

Permalink
[docs] Update Xvfb docs to latest Travis recommendation (#4828)
Browse files Browse the repository at this point in the history
* Update Xvfb docs to latest Travis recommendation

- Use the xvfb service and chrome addon instead of manual install, as described in https://docs.travis-ci.com/user/gui-and-headless-browsers/#using-xvfb-to-run-tests-that-require-a-gui
- Make .travis.yml snippet complete for optimal copypasta

* Use the service only

Co-authored-by: Andrey Belym <belym.a.2105@gmail.com>
  • Loading branch information
cdrini and AndreyBelym committed Mar 19, 2020
1 parent c44d6ee commit 8a6f092
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions docs/articles/documentation/continuous-integration/travis.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,22 +56,21 @@ Travis CI uses Ubuntu Server virtual machines that do not have regular graphical
The following sections are required in your `.travis.yml` to start `Xvfb`:

```yaml
dist: trusty
sudo: required
dist: bionic

addons:
firefox: latest
apt:
sources:
- google-chrome
packages:
- google-chrome-stable fluxbox
chrome: stable

services:
- xvfb

language: node_js
node_js: 'stable'

before_script:
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"
- sleep 3
- fluxbox >/dev/null 2>&1 &
- sleep 3
```

You can find more information about Travis and Xvfb in [this article](https://docs.travis-ci.com/user/gui-and-headless-browsers/#Using-xvfb-to-Run-Tests-That-Require-a-GUI).
Expand Down

0 comments on commit 8a6f092

Please sign in to comment.