---
language: node_js
node_js:
  - "6"
  - "8"
  - "10"

sudo: false
dist: trusty

addons:
  chrome: stable

cache:
  directories:
    - $HOME/.npm

env:
  - TEST_FRAMEWORK=ember-qunit
  - TEST_FRAMEWORK=ember-cli-mocha

matrix:
  fast_finish: true

branches:
  only:
    - master

before_install:
  - npm config set spin false
  - npm install -g npm@4
  - npm --version

install:
  - npm install
  - ./bin/install-test-framework.sh

script:
  - npm test

after_script:
  - npm run coverage

---
language: node_js
node_js:
  - "6"
  - "8"
  - "10"

addons:
  chrome: stable

cache:
  directories:
    - $HOME/.npm

env:
  - TEST_FRAMEWORK=ember-qunit
  - TEST_FRAMEWORK=ember-cli-mocha

matrix:
  fast_finish: true

branches:
  only:
    - master

before_install:
  - npm config set spin false
  - npm install -g npm@4
  - npm --version

install:
  - npm install
  - ./bin/install-test-framework.sh

script:
  - npm test

after_script:
  - npm run coverage

Remove deprecated `sudo: false` option
TravisCI: Remove deprecated `sudo: false` option

see https://blog.travis-ci.com/2018-11-19-required-linux-infrastructure-migration
