machine:
  node:
    version: 7.9.0
dependencies:
  override:
    - npm install -g istanbul
    - npm install -g yarn
    - yarn install
general:
  artifacts:
    - ./coverage
deployment:
  dev:
    branch: dev
    commands:
      - git config user.email "web.jam.adm@gmail.com"
      - git config user.name  "circleci"
      - "[[ ! -s \"$(git rev-parse --git-dir)/shallow\" ]] || git fetch --unshallow"
      - git commit --allow-empty -m "Force heroku dev rebuild"
      - git push -f git@heroku.com:web-jam-back-dev.git HEAD:master
  master:
    branch: master
    commands:
      - git config user.email "web.jam.adm@gmail.com"
      - git config user.name  "circleci"
      - "[[ ! -s \"$(git rev-parse --git-dir)/shallow\" ]] || git fetch --unshallow"
      - git commit --allow-empty -m "Force heroku master rebuild"
      - git push -f git@heroku.com:webjamsalem.git HEAD:master

machine:
  node:
    version: 7.9.0
dependencies:
  pre:
    - npm install -g istanbul yarn codeclimate-test-reporter
  override:
    - yarn install
test:
  post:
    - codeclimate-test-reporter < coverage/lcov.info
general:
  artifacts:
    - ./coverage
deployment:
  dev:
    branch: dev
    commands:
      - git config user.email "web.jam.adm@gmail.com"
      - git config user.name  "circleci"
      - "[[ ! -s \"$(git rev-parse --git-dir)/shallow\" ]] || git fetch --unshallow"
      - git commit --allow-empty -m "Force heroku dev rebuild"
      - git push -f git@heroku.com:web-jam-back-dev.git HEAD:master
  master:
    branch: master
    commands:
      - git config user.email "web.jam.adm@gmail.com"
      - git config user.name  "circleci"
      - "[[ ! -s \"$(git rev-parse --git-dir)/shallow\" ]] || git fetch --unshallow"
      - git commit --allow-empty -m "Force heroku master rebuild"
      - git push -f git@heroku.com:webjamsalem.git HEAD:master

Add codeclimate test coverage reporting
Add codeclimate test coverage reporting
