machine:
  pre:
    - mkdir ~/.yarn-cache
  node:
    version: v7.3.0

dependencies:
  pre:
    - curl -o- -L https://yarnpkg.com/install.sh | bash
  cache_directories:
    - ~/.yarn-cache
  override:
    - yarn install

test:
  override:
    - ./bin/lint.sh
    - ./node_modules/flow-bin/cli.js check src
