machine:
  node:
    version: 7.9.0
  environment:
    PATH: "${PATH}:${HOME}/${CIRCLE_PROJECT_REPONAME}/node_modules/.bin"

general:
  artifacts:
    - ./coverage

dependencies:
  override:
    - yarn
    - yarn global add codeclimate-test-reporter
  cache_directories:
    - ~/.cache/yarn

test:
  environment:
    MOCHA_FILE: $CIRCLE_TEST_REPORTS/junit/test-results.xml
  pre:
    - mkdir -p $CIRCLE_TEST_REPORTS/reports
  override:
    - yarn run lint -- --format junit --output-file $CIRCLE_TEST_REPORTS/reports/eslint.xml
    - yarn run dtslint
    - yarn run cover -- --reporter mocha-junit-reporter
  post:
    - cp -R ./coverage $CIRCLE_ARTIFACTS
    - >
      CODECLIMATE_REPO_TOKEN=$CODECLIMATE_REPO_TOKEN
      codeclimate-test-reporter < ./coverage/lcov.info
machine:
  node:
    version: 7.9.0
  environment:
    PATH: "${PATH}:${HOME}/${CIRCLE_PROJECT_REPONAME}/node_modules/.bin"

general:
  artifacts:
    - ./coverage

dependencies:
  override:
    - yarn
    - yarn global add codeclimate-test-reporter
  cache_directories:
    - ~/.cache/yarn

test:
  environment:
    MOCHA_FILE: $CIRCLE_TEST_REPORTS/junit/test-results.xml
  pre:
    - mkdir -p $CIRCLE_TEST_REPORTS/reports
  override:
    - npm run lint -- --format junit --output-file $CIRCLE_TEST_REPORTS/reports/eslint.xml
    - npm run dtslint
    - npm run cover -- --reporter mocha-junit-reporter
  post:
    - cp -R ./coverage $CIRCLE_ARTIFACTS
    - >
      CODECLIMATE_REPO_TOKEN=$CODECLIMATE_REPO_TOKEN
      codeclimate-test-reporter < ./coverage/lcov.info
Use npm not yarn to run stuff
Use npm not yarn to run stuff
