language: node_js
node_js:
  - "lts/argon"
  - "lts/boron"
  - "7"
  
sudo: false
dist: trusty

before_install:
  - "npm config set spin false"
  - "npm install -g npm@latest"

language: node_js
node_js:
  - "lts/argon"
  - "lts/boron"
  - "7"
  
sudo: false
dist: trusty

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

script:
  - yarn test

Use yarn instead of npm
CI: Use yarn instead of npm
