language: node_js
dist: xenial
services:
  - xvfb
node_js:
  - stable
  - 12
matrix:
  fast_finish: true
  include:
    - node_js: stable
      os: osx
    - node_js: 12
      env: ELECTRON_VERSION=8
    - node_js: 12
      env: ELECTRON_VERSION=7
    - node_js: 12
      env: ELECTRON_VERSION=6
    - node_js: 12
      env: ELECTRON_VERSION=5
    - node_js: 10
      env: ELECTRON_VERSION=4
    - node_js: stable
      env: ELECTRON_VERSION=beta
before_install:
  - if [[ -n $ELECTRON_VERSION ]]; then
      npm install electron@$ELECTRON_VERSION;
    fi
install:
  - npm install --no-progress
  - $(npm bin)/electron --version
script:
  - if [[ $ELECTRON_VERSION = "beta" ]]; then
      npm test;
    else
      npm test || true;
    fi
notifications:
  email: false

language: node_js
dist: xenial
services:
  - xvfb
node_js:
  - stable
  - 12
matrix:
  fast_finish: true
  include:
    - node_js: stable
      os: osx
    - node_js: 12
      env: ELECTRON_VERSION=9
    - node_js: 12
      env: ELECTRON_VERSION=8
    - node_js: 12
      env: ELECTRON_VERSION=7
    - node_js: 12
      env: ELECTRON_VERSION=6
    - node_js: 12
      env: ELECTRON_VERSION=5
    - node_js: 10
      env: ELECTRON_VERSION=4
    - node_js: stable
      env: ELECTRON_VERSION=beta
before_install:
  - if [[ -n $ELECTRON_VERSION ]]; then
      npm install electron@$ELECTRON_VERSION;
    fi
install:
  - npm install --no-progress
  - $(npm bin)/electron --version
script:
  - if [[ $ELECTRON_VERSION = "beta" ]]; then
      npm test;
    else
      npm test || true;
    fi
notifications:
  email: false

Add Electron 9 to test matrix
Add Electron 9 to test matrix
