Skip to content

Commit 9c8a222

Browse files
anthony-redFoxjohnjbarton
authored andcommittedSep 30, 2019
Make travis file simpler (#386)
* Make travis file simpler the are two reasons 1. Since of May 2019 by default start Ubuntu Xenial 16.04 https://blog.travis-ci.com/2019-04-15-xenial-default-build-environment 2. and also since Ubuntu 16.04 you can start xvfb as services https://docs.travis-ci.com/user/gui-and-headless-browsers/#using-xvfb-to-run-tests-that-require-a-gui - move xvfb to services - Remove update npm (it was need for old versions of node) * travis executes export DISPLAY=:99.0 when service xvfb start and don't need repeat again
1 parent b76db9e commit 9c8a222

File tree

1 file changed

+3
-10
lines changed

1 file changed

+3
-10
lines changed
 

‎.travis.yml

+3-10
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,11 @@ node_js:
33
- 8
44
- 10
55

6-
# Make sure we have new NPM.
7-
before_install:
8-
- export DISPLAY=:99.0
9-
- sh -e /etc/init.d/xvfb start
10-
- sleep 3 # Give xvfb time to to start
11-
- npm install -g npm
12-
- npm config set loglevel warn
6+
services:
7+
- xvfb
138

149
before_script:
1510
- npm install -g grunt-cli
1611

1712
script:
18-
- grunt
19-
20-
dist: trusty # Impacts this script, eg xvfb
13+
- grunt

0 commit comments

Comments
 (0)
Please sign in to comment.