language: node_js
sudo: required
dist: xenial
node_js: stable
addons:
  sauce_connect: true
  firefox: latest
  apt:
    sources:
    - google-chrome
    packages:
    - google-chrome-stable
services:
  - xvfb
before_install:
- export CHROME_BIN=chromium-browser
- export DISPLAY=:99.0
before_script:
- npm install
script:
- if [ "${TRAVIS_PULL_REQUEST}" = "false" ]; then gulp ci; else gulp test-pr; fi

language: node_js
sudo: required
dist: xenial
node_js: 8
addons:
  sauce_connect: true
  firefox: latest
  apt:
    sources:
    - google-chrome
    packages:
    - google-chrome-stable
services:
  - xvfb
before_install:
- export CHROME_BIN=chromium-browser
- export DISPLAY=:99.0
before_script:
- npm install
script:
- if [ "${TRAVIS_PULL_REQUEST}" = "false" ]; then gulp ci; else gulp test-pr; fi

Set node version to 8 due to Gulp 3 issue in v12
Set node version to 8 due to Gulp 3 issue in v12

Ref: https://stackoverflow.com/a/55926692