machine:
  pre:
    - mkdir ~/.yarn-cache
  node:
    version: "7.5.0"

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

test:
  pre:
    - yarn run lint
    - yarn run flow
  override:
    - yarn run test:ci

machine:
  node:
    version: "7.5.0"
  environment:
    PATH: "${PATH}:${HOME}/${CIRCLE_PROJECT_REPONAME}/node_modules/.bin"

dependencies:
  cache_directories:
    - "~/.cache/yarn"
  override:
    - yarn

test:
  pre:
    - yarn run lint
    - yarn run flow
  override:
    - yarn run test:ci

Update CircleCI to reflect proper Yarn usage
chore: Update CircleCI to reflect proper Yarn usage

https://circleci.com/docs/yarn/
