You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/articles/documentation/continuous-integration/travis.md
+9-10
Original file line number
Diff line number
Diff line change
@@ -56,22 +56,21 @@ Travis CI uses Ubuntu Server virtual machines that do not have regular graphical
56
56
The following sections are required in your `.travis.yml` to start `Xvfb`:
57
57
58
58
```yaml
59
-
dist: trusty
60
-
sudo: required
59
+
dist: bionic
61
60
62
61
addons:
63
62
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'
69
70
70
71
before_script:
71
-
- "export DISPLAY=:99.0"
72
-
- "sh -e /etc/init.d/xvfb start"
73
-
- sleep 3
74
72
- fluxbox >/dev/null 2>&1 &
73
+
- sleep 3
75
74
```
76
75
77
76
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