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

dependencies:
  pre:
    - mkdir -p /home/ubuntu/.cache/yarn/
    - curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
    - echo "deb http://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
    - sudo apt-get update && sudo apt-get install yarn
  cache_directories:
    - ~/.cache
  override:
    - yarn install

test:
  override:
    - yarn lint
    - yarn test

machine :
  pre:
    - mkdir ~/.yarn-cache
  node:
    version: 7.0.0
  services:
    - redis

dependencies:
  pre:
    - mkdir -p /home/ubuntu/.cache/yarn/
    - curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
    - echo "deb http://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
    - sudo apt-get update && sudo apt-get install yarn
  cache_directories:
    - ~/.cache
  override:
    - yarn install

test:
  override:
    - yarn lint
    - yarn test

Add redis service on CircleCI
Add redis service on CircleCI
