machine:
  node:
    version: 7

dependencies:
  cache_directories:
    - ~/.cache/yarn
  pre:
    - sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.9 20
    - sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.9 20
    - curl -o- -L https://yarnpkg.com/install.sh | bash
    - yarn global add codecov
  override:
    - yarn --force

test:
  pre:
    - yarn run lint
    - yarn run flow -- check
  override:
    - yarn test -- --coverage
  post:
    - codecov

machine:
  node:
    version: 8

dependencies:
  cache_directories:
    - ~/.cache/yarn
  pre:
    - sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.9 20
    - sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.9 20
    - curl -o- -L https://yarnpkg.com/install.sh | bash
    - yarn global add codecov
  override:
    - yarn --force

test:
  pre:
    - yarn run lint
    - yarn run flow -- check
  override:
    - yarn test -- --coverage
  post:
    - codecov

Use Node 8 for CI
[ci] Use Node 8 for CI
