Skip to content

Commit

Permalink
Upgrade Travis environment from Trusty (EOL) to Bionic (Ubuntu 18.04:…
Browse files Browse the repository at this point in the history
… Bionic Beaver).

- the node_js key value doesn't need to be quoted, per example here:
  https://docs.travis-ci.com/user/languages/javascript-with-nodejs/#specifying-nodejs-versions

- change to starting xvfb (headless browser testing support) using the services key, per:
  https://docs.travis-ci.com/user/trusty-to-xenial-migration-guide

- remove install and script keys as they were superfluous, given they matched Travis defaults, documented at top of here:
  https://docs.travis-ci.com/user/languages/javascript-with-nodejs/#what-this-guide-covers
  • Loading branch information
Quintin Willison committed Apr 20, 2020
1 parent ae4736f commit e8b865f
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
dist: trusty
dist: bionic
language: node_js
node_js:
- "8"
- 8
addons:
firefox: "58.0"
services:
- xvfb
before_script:
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"
- sleep 3 # give xvfb some time to start
install: npm install
script: npm test

0 comments on commit e8b865f

Please sign in to comment.