language: node_js
sudo: false
node_js:
- "6"
- "8"
- "10"
- "11"
addons:
  chrome: stable
env:
  - NPM_SCRIPT=test:browserless
matrix:
  include:
    # Run browser tests only on one Node.js version to save time.
    - node_js: "10"
      env: NPM_SCRIPT=test:browser
script:
  - npm run $NPM_SCRIPT

language: node_js
sudo: false
node_js:
- "8"
- "10"
- "12"
addons:
  chrome: stable
env:
  - NPM_SCRIPT=test:browserless
matrix:
  include:
    # Run browser tests only on one Node.js version to save time.
    - node_js: "10"
      env: NPM_SCRIPT=test:browser
script:
  - npm run $NPM_SCRIPT

Test on Node.js 12, stop testing on Node.js 6 & 11
Build: Test on Node.js 12, stop testing on Node.js 6 & 11

Closes gh-4369