language: node_js
node_js:
  - "node"
  - "6"
  - "5"
  - "4"
matrix:
  fast_finish: true
sudo: required
notifications:
  email:
    on_success: change
    on_failure: change
before_install:
  # Repo for newer Node.js versions
  - curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -
  # Repo for Yarn
  - sudo apt-key adv --fetch-keys http://dl.yarnpkg.com/debian/pubkey.gpg
  - echo "deb http://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
  - sudo apt-get update -qq
  - sudo apt-get install -y -qq yarn
cache:
  directories:
  - $HOME/.yarn-cache
install:
  - yarn
script:
  - yarn test

language: node_js
node_js:
  - "node"
  - "6"
  - "5"
  - "4"
matrix:
  fast_finish: true
sudo: required
notifications:
  email:
    on_success: change
    on_failure: change
before_install:
  # Repo for Yarn
  - sudo apt-key adv --fetch-keys http://dl.yarnpkg.com/debian/pubkey.gpg
  - echo "deb http://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
  - sudo apt-get update -qq
  - sudo apt-get install -y -qq yarn
cache:
  directories:
  - $HOME/.yarn-cache
install:
  - yarn
script:
  - yarn test

Remove installation of newer node version
Remove installation of newer node version
