machine:
  node:
    version: 4.1.2

general:
  artifacts:
    - $CIRCLE_TEST_REPORTS

test:
  override:
    - npm run security:check
    - npm test -- --reporter mocha-junit-reporter --reporter-options mochaFile=$CIRCLE_TEST_REPORTS/junit/results.xml
    - npm run cover -- --output=$CIRCLE_TEST_REPORTS/coverage/
    - CODECLIMATE_REPO_TOKEN=$CODECLIMATE_REPO_TOKEN ./node_modules/.bin/codeclimate-test-reporter < $CIRCLE_TEST_REPORTS/coverage/lcov.info

machine:
  node:
    version: 4.1.2

general:
  artifacts:
    - $CIRCLE_TEST_REPORTS

test:
  override:
    - npm run security:check
    - npm test -- --reporter mocha-junit-reporter --reporter-options mochaFile=$CIRCLE_TEST_REPORTS/junit/results.xml
    - npm run cover
    - copy ./coverage $CIRCLE_TEST_REPORTS/coverage
    - CODECLIMATE_REPO_TOKEN=$CODECLIMATE_REPO_TOKEN ./node_modules/.bin/codeclimate-test-reporter < $CIRCLE_TEST_REPORTS/coverage/lcov.info

Copy the coverage report to the artifact directory
Copy the coverage report to the artifact directory
