machine:
  node:
    version: 6

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

test:
  override:
    - npm run lint
    - npm run flow
    - npm test
    - npm run integration-test
  post:
    - cp -r coverage $CIRCLE_ARTIFACTS
