Skip to content

Commit 8a6f092

Browse files
cdriniAndreyBelym
andauthoredMar 19, 2020
[docs] Update Xvfb docs to latest Travis recommendation (DevExpress#4828)
* 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>
1 parent c44d6ee commit 8a6f092

File tree

1 file changed

+9
-10
lines changed
  • docs/articles/documentation/continuous-integration

1 file changed

+9
-10
lines changed
 

‎docs/articles/documentation/continuous-integration/travis.md

+9-10
Original file line numberDiff line numberDiff line change
@@ -56,22 +56,21 @@ Travis CI uses Ubuntu Server virtual machines that do not have regular graphical
5656
The following sections are required in your `.travis.yml` to start `Xvfb`:
5757

5858
```yaml
59-
dist: trusty
60-
sudo: required
59+
dist: bionic
6160
6261
addons:
6362
firefox: latest
64-
apt:
65-
sources:
66-
- google-chrome
67-
packages:
68-
- google-chrome-stable fluxbox
63+
chrome: stable
64+
65+
services:
66+
- xvfb
67+
68+
language: node_js
69+
node_js: 'stable'
6970
7071
before_script:
71-
- "export DISPLAY=:99.0"
72-
- "sh -e /etc/init.d/xvfb start"
73-
- sleep 3
7472
- fluxbox >/dev/null 2>&1 &
73+
- sleep 3
7574
```
7675

7776
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).

0 commit comments

Comments
 (0)