language: node_js
node_js:
  - lts/*
env:
  global:
    - MOZ_HEADLESS=1
services:
  - xvfb
addons:
  firefox: latest
  chrome: stable
cache:
  npm: false

script:
  - npm test
  - xvfb-run --auto-servernum npm run test-browser -- --browser chrome
  - xvfb-run --auto-servernum npm run test-browser -- --browser firefox
