Skip to content

Commit

Permalink
Merge pull request #1603 from simov/codecov
Browse files Browse the repository at this point in the history
Add codecov
  • Loading branch information
simov committed Jun 8, 2015
2 parents e5a94c3 + 9701a3c commit 308ea00
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
6 changes: 4 additions & 2 deletions .travis.yml
Expand Up @@ -3,10 +3,12 @@ node_js:
- "io.js"
- "0.12"
- "0.10"
after_script: ./node_modules/.bin/istanbul cover ./node_modules/tape/bin/tape tests/test-*.js --report lcovonly && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js --verbose
sudo: false

after_script: "npm run test-cov && cat ./coverage/lcov.info | codecov && cat ./coverage/lcov.info | coveralls"

webhooks:
urls: https://webhooks.gitter.im/e/237280ed4796c19cc626
on_success: change # options: [always|never|change] default: always
on_failure: always # options: [always|never|change] default: always
on_start: false # default: false
sudo: false
1 change: 1 addition & 0 deletions README.md
Expand Up @@ -4,6 +4,7 @@
[![npm package](https://nodei.co/npm/request.png?downloads=true&downloadRank=true&stars=true)](https://nodei.co/npm/request/)

[![Build status](https://img.shields.io/travis/request/request.svg?style=flat-square)](https://travis-ci.org/request/request)
[![Coverage](https://img.shields.io/codecov/c/github/request/request.svg?style=flat-square)](https://codecov.io/github/request/request?branch=master)
[![Coverage](https://img.shields.io/coveralls/request/request.svg?style=flat-square)](https://coveralls.io/r/request/request)
[![Dependency Status](https://img.shields.io/david/request/request.svg?style=flat-square)](https://david-dm.org/request/request)
[![Gitter](https://img.shields.io/badge/gitter-join_chat-blue.svg?style=flat-square)](https://gitter.im/request/request?utm_source=badge)
Expand Down
7 changes: 5 additions & 2 deletions package.json
Expand Up @@ -42,14 +42,17 @@
"har-validator": "^1.6.1"
},
"scripts": {
"test": "npm run lint && node node_modules/.bin/taper tests/test-*.js && npm run test-browser",
"test": "npm run lint && npm run test-ci && npm run test-browser",
"test-ci": "taper tests/test-*.js",
"test-cov": "istanbul cover tape tests/test-*.js",
"test-browser": "node tests/browser/start.js",
"lint": "node node_modules/.bin/eslint lib/ *.js tests/ && echo Lint passed."
"lint": "eslint lib/ *.js tests/ && echo Lint passed."
},
"devDependencies": {
"browserify": "~5.9.1",
"browserify-istanbul": "~0.1.3",
"buffer-equal": "0.0.1",
"codecov.io": "~0.1.2",
"coveralls": "~2.11.2",
"eslint": "0.18.0",
"function-bind": "~1.0.0",
Expand Down

0 comments on commit 308ea00

Please sign in to comment.