---
language: node_js
node_js:
  - "8"

sudo: false
dist: trusty

addons:
  chrome: stable
  firefox: "latest"

env:
  global:
    - MOZ_HEADLESS=1 # necessary for Firefox headless, see https://docs.travis-ci.com/user/gui-and-headless-browsers/#Using-the-Firefox-addon-in-headless-mode
    - SAUCE_USERNAME=mobiledoc-kit
    - SAUCE_ACCESS_KEY=f9cad21d-1141-452d-8f64-c6ba3f43faa6

cache:
  yarn: true

script:
  - yarn test:ci

---
language: node_js
node_js:
  - "12"

sudo: false
dist: trusty

addons:
  chrome: stable
  firefox: "latest"

env:
  global:
    - MOZ_HEADLESS=1 # necessary for Firefox headless, see https://docs.travis-ci.com/user/gui-and-headless-browsers/#Using-the-Firefox-addon-in-headless-mode
    - SAUCE_USERNAME=mobiledoc-kit
    - SAUCE_ACCESS_KEY=f9cad21d-1141-452d-8f64-c6ba3f43faa6

cache:
  yarn: true

script:
  - yarn test:ci

Use Node 12 on Travis
Use Node 12 on Travis