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

sudo: false
dist: trusty

addons:
  chrome: stable

cache:
  yarn: true

env:
  global:
    # See https://git.io/vdao3 for details.
    - JOBS=1

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

install:
  # absurdly, yarn reliably fails on the first try and succeeds on the second here.
  - until yarn install --non-interactive; do echo "trying yarn again"; done

script:
  - yarn lint:hbs
  - yarn lint:js
  - yarn test

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

sudo: false
dist: trusty

addons:
  chrome: stable

cache:
  yarn: true

env:
  global:
    # See https://git.io/vdao3 for details.
    - JOBS=1

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

install:
  - yarn install --non-interactive

script:
  - yarn lint:hbs
  - yarn lint:js
  - yarn test

Revert "trying yarn with retry"
Revert "trying yarn with retry"

This reverts commit 7ef555011ba7f410a24fc6edf66fa5832df79765.
