From 2830cdb50a1a055d8e896e7df56010ba567a3d72 Mon Sep 17 00:00:00 2001 From: simov Date: Tue, 26 May 2015 18:56:42 +0300 Subject: [PATCH 1/2] Migrate to codecov --- .travis.yml | 6 ++++-- README.md | 2 +- package.json | 6 ++++-- 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/.travis.yml b/.travis.yml index bd0f638eb..046a7431a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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 | ./node_modules/codecov.io/bin/codecov.io.js" + 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 diff --git a/README.md b/README.md index 2dc526b2b..5e6def2a4 100644 --- a/README.md +++ b/README.md @@ -4,7 +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/coveralls/request/request.svg?style=flat-square)](https://coveralls.io/r/request/request) +[![Coverage](https://img.shields.io/codecov/c/github/request/request.svg?style=flat-square)](https://codecov.io/github/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) diff --git a/package.json b/package.json index a0dbaba23..9a4cdf441 100644 --- a/package.json +++ b/package.json @@ -42,7 +42,9 @@ "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": "node node_modules/.bin/taper tests/test-*.js", + "test-cov": "node node_modules/.bin/istanbul cover ./node_modules/tape/bin/tape tests/test-*.js", "test-browser": "node tests/browser/start.js", "lint": "node node_modules/.bin/eslint lib/ *.js tests/ && echo Lint passed." }, @@ -50,7 +52,7 @@ "browserify": "~5.9.1", "browserify-istanbul": "~0.1.3", "buffer-equal": "0.0.1", - "coveralls": "~2.11.2", + "codecov.io": "~0.1.2", "eslint": "0.18.0", "function-bind": "~1.0.0", "istanbul": "~0.3.2", From 9701a3c0685c851108d8475c9d302782875bbe17 Mon Sep 17 00:00:00 2001 From: simov Date: Mon, 8 Jun 2015 20:16:44 +0300 Subject: [PATCH 2/2] Return back coveralls, clean npm scripts --- .travis.yml | 2 +- README.md | 3 ++- package.json | 7 ++++--- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/.travis.yml b/.travis.yml index 046a7431a..6180cb5d7 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,7 +5,7 @@ node_js: - "0.10" sudo: false -after_script: "npm run test-cov && cat ./coverage/lcov.info | ./node_modules/codecov.io/bin/codecov.io.js" +after_script: "npm run test-cov && cat ./coverage/lcov.info | codecov && cat ./coverage/lcov.info | coveralls" webhooks: urls: https://webhooks.gitter.im/e/237280ed4796c19cc626 diff --git a/README.md b/README.md index 5e6def2a4..5fee320d2 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,8 @@ [![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) +[![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) diff --git a/package.json b/package.json index 9a4cdf441..da142404c 100644 --- a/package.json +++ b/package.json @@ -43,16 +43,17 @@ }, "scripts": { "test": "npm run lint && npm run test-ci && npm run test-browser", - "test-ci": "node node_modules/.bin/taper tests/test-*.js", - "test-cov": "node node_modules/.bin/istanbul cover ./node_modules/tape/bin/tape tests/test-*.js", + "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", "istanbul": "~0.3.2",