From e8b865f184d07d4e791df8493e71d4c33aba3637 Mon Sep 17 00:00:00 2001 From: Quintin Willison Date: Mon, 20 Apr 2020 12:31:00 +0100 Subject: [PATCH] Upgrade Travis environment from Trusty (EOL) to Bionic (Ubuntu 18.04: 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 --- .travis.yml | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/.travis.yml b/.travis.yml index 4155917..9fed14d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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