---
language: node_js
node_js:
  # we recommend testing addons with the same minimum supported node version as Ember CLI
  # so that your addon works for all apps
  - "6"

sudo: false
dist: trusty

addons:
  chrome: stable

cache:
  yarn: true

before_install:
  - curl -o- -L https://yarnpkg.com/install.sh | bash
  - export PATH=$HOME/.yarn/bin:$PATH

install:
  - yarn install --no-lockfile --non-interactive

# Build to dist so we can use it for the Broccoli tree
# for tests, as if it was passed to the Ember addon

script:
  - ember build
  - yarn test

---
language: node_js
node_js:
  # we recommend testing addons with the same minimum supported node version as Ember CLI
  # so that your addon works for all apps
  - "6"

addons:
  chrome: stable

cache:
  yarn: true

before_install:
  - curl -o- -L https://yarnpkg.com/install.sh | bash
  - export PATH=$HOME/.yarn/bin:$PATH

install:
  - yarn install --no-lockfile --non-interactive

# Build to dist so we can use it for the Broccoli tree
# for tests, as if it was passed to the Ember addon

script:
  - ember build
  - yarn test

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

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