machine:
  node:
    version: 6.9.5
  environment:
    YARN_VERSION: 0.20.3
    PATH: "${PATH}:${HOME}/.yarn/bin:${HOME}/${CIRCLE_PROJECT_REPONAME}/node_modules/.bin"
dependencies:
  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
    - npm install -g grunt-cli
    - gem install sass
    - google-chrome --version
    - wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
    - sudo sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list'
    - sudo apt-get update
    - sudo apt-get --only-upgrade install google-chrome-stable
    - google-chrome --version
  override:
    - yarn install
  cache_directories:
    - ~/.yarn
    - ~/.cache/yarn
test:
  override:
    - yarn lint
    - yarn test

machine:
  node:
    version: 6.9.5
  environment:
    YARN_VERSION: 0.20.3
    PATH: "${PATH}:${HOME}/.yarn/bin:${HOME}/${CIRCLE_PROJECT_REPONAME}/node_modules/.bin"
dependencies:
  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
    - npm install -g grunt-cli
    - gem install sass
    - google-chrome --version
    - wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
    - sudo sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list'
    - sudo apt-get update
    - sudo apt-get --only-upgrade install google-chrome-stable
    - google-chrome --version
  override:
    - yarn install
  cache_directories:
    - ~/.yarn
    - ~/.cache/yarn
test:
  override:
    - yarn test

Remove lint step as it is already run by test
Remove lint step as it is already run by test
