cache:
  directories:
    - $HOME/.yarn-cache

language: node_js

node_js:
  - "4"
  - "5"
  - "6"

branches:
  only:
    - master
    - dev
    - /^greenkeeper.*$/

before_install:
  # 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

install: yarn

script:
  - npm run lint
  - npm run typecheck
  - npm test

after_success:
  - bash <(curl -s https://codecov.io/bash)

cache: yarn

language: node_js

node_js:
  - "4"
  - "5"
  - "6"
  - "7"

branches:
  only:
    - master
    - dev
    - /^greenkeeper.*$/

script:
  - yarn run lint
  - yarn run typecheck
  - yarn test

after_success:
  - bash <(curl -s https://codecov.io/bash)

Test on Node 7 and take advantage of TravisCI's yarn support
Test on Node 7 and take advantage of TravisCI's yarn support
