dependencies:
  pre:
    - yarn global add lerna codecov
  override:
    - yarn install
    - lerna bootstrap
  post:
    - case $CIRCLE_NODE_INDEX in 0) NODE_VERSION=4 ;; 1) NODE_VERSION=5 ;; 2) NODE_VERSION=6 ;; esac; nvm install $NODE_VERSION && nvm alias default $NODE_VERSION

test:
  override:
    - yarn test
    - if [[ -e junitresults.xml ]]; then cp junitresults.xml $CIRCLE_TEST_REPORTS/test-results.xml; fi
  post:
    - codecov

machine:
  node:
    version: 6.1.0

dependencies:
  pre:
    - yarn global add lerna codecov
  override:
    - yarn install
    - lerna bootstrap
  post:
    - case $CIRCLE_NODE_INDEX in 0) NODE_VERSION=4 ;; 1) NODE_VERSION=5 ;; 2) NODE_VERSION=6 ;; esac; nvm install $NODE_VERSION && nvm alias default $NODE_VERSION

test:
  override:
    - yarn test
    - if [[ -e junitresults.xml ]]; then cp junitresults.xml $CIRCLE_TEST_REPORTS/test-results.xml; fi
  post:
    - codecov

Add minimum node version for running tests
chore: Add minimum node version for running tests
