sudo: required
dist: trusty
language: node_js
cache:
  directories:
    - node_modules
addons:
  firefox: "45.0"
node_js:
  - "8"
before_install:
  - export CHROME_BIN=/usr/bin/google-chrome
  - export DISPLAY=:99.0
  - sh -e /etc/init.d/xvfb start
  - sudo apt-get update
  - sudo apt-get install -y libappindicator1 fonts-liberation
  - wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
  - sudo dpkg -i google-chrome*.deb
script:
  - npm run test-and-cover
after_success:
  - bash <(curl -s https://codecov.io/bash)

sudo: required
dist: trusty
language: node_js
cache:
  directories:
    - node_modules
addons:
  firefox: "45.0"
node_js:
  - "10"
before_install:
  - export CHROME_BIN=/usr/bin/google-chrome
  - export DISPLAY=:99.0
  - sh -e /etc/init.d/xvfb start
  - sudo apt-get update
  - sudo apt-get install -y libappindicator1 fonts-liberation
  - wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
  - sudo dpkg -i google-chrome*.deb
script:
  - npm run test-and-cover
after_success:
  - bash <(curl -s https://codecov.io/bash)

Use NodeJS 10 on Travis.
Use NodeJS 10 on Travis.
