machine:
  pre:
    - npm install codeclimate-test-reporter
  node:
    version: 4.2.1

deployment:
  coverage:
    branch: /*/
    owner: rnpm
    commands:
      - npm run coverage
      - codeclimate-test-reporter < coverage/lcov.info

notify:
  webhooks:
    - url: https://webhooks.gitter.im/e/bf9cb7240681c7263e6b

machine:
  pre:
    - npm install codeclimate-test-reporter
  node:
    version: 4.2.1

test:
  post:
    - npm run coverage
    - codeclimate-test-reporter < coverage/lcov.info

notify:
  webhooks:
    - url: https://webhooks.gitter.im/e/bf9cb7240681c7263e6b

Replace deployment by post-test hook
Replace deployment by post-test hook
