## Customize the test machine
machine:
  node:
    version: 6.1.0

  timezone:
    Asia/Seoul

  # Add some environment variables
  environment:
    YARN_VERSION: 0.19.1
    PATH: "${HOME}/${CIRCLE_PROJECT_REPONAME}/node_modules/.bin:${HOME}/.yarn/bin:${PATH}"

## Customize dependencies
dependencies:
  cache_directories:
    - ~/.yarn
    - ~/.cache/yarn
  pre:
    - |
      if [[ ! -e ~/.yarn/bin/yarn || $(yarn --version) != "${YARN_VERSION}" ]]; then
        echo "Download and install Yarn."
        curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version $YARN_VERSION
      else
        echo "The correct version of Yarn is already installed."
      fi
  override:
    - yarn

## Customize test commands
test:
  override:
    - yarn run test:coverage
    - yarn run lint
  post:
    - ./node_modules/.bin/coveralls < ./coverage/lcov.info
    - mv coverage $CIRCLE_ARTIFACTS/coverage

## Customize the test machine
machine:
  node:
    version: 6.1.0

  timezone:
    Asia/Seoul

  services:
    - redis

  # Add some environment variables
  environment:
    YARN_VERSION: 0.19.1
    PATH: "${HOME}/${CIRCLE_PROJECT_REPONAME}/node_modules/.bin:${HOME}/.yarn/bin:${PATH}"

## Customize dependencies
dependencies:
  cache_directories:
    - ~/.yarn
    - ~/.cache/yarn
  pre:
    - |
      if [[ ! -e ~/.yarn/bin/yarn || $(yarn --version) != "${YARN_VERSION}" ]]; then
        echo "Download and install Yarn."
        curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version $YARN_VERSION
      else
        echo "The correct version of Yarn is already installed."
      fi
  override:
    - yarn

## Customize test commands
test:
  override:
    - yarn run test:coverage
    - yarn run lint
  post:
    - ./node_modules/.bin/coveralls < ./coverage/lcov.info
    - mv coverage $CIRCLE_ARTIFACTS/coverage

Add redis to CircleCI service
Add redis to CircleCI service
