From a5d1084bd52f455cbba21a82433928d4a605c9c2 Mon Sep 17 00:00:00 2001 From: Vsevolod Strukchinsky Date: Sun, 18 Oct 2015 12:09:41 +0500 Subject: [PATCH] add coverage --- .travis.yml | 1 + package.json | 5 ++++- readme.md | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 52ba159..49d3918 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,3 +4,4 @@ node_js: - 'stable' - '0.12' - '0.10' +after_success: npm run coveralls diff --git a/package.json b/package.json index e8252a0..7189f21 100644 --- a/package.json +++ b/package.json @@ -23,7 +23,8 @@ "unzip-response": false }, "scripts": { - "test": "xo && ava" + "test": "xo && ava", + "coveralls": "nyc report --reporter=text-lcov | coveralls" }, "files": [ "index.js" @@ -61,7 +62,9 @@ }, "devDependencies": { "ava": "^0.2.0", + "coveralls": "^2.11.4", "into-stream": "^2.0.0", + "nyc": "^3.2.2", "pem": "^1.4.4", "pify": "^2.2.0", "tempfile": "^1.1.1", diff --git a/readme.md b/readme.md index bfdab31..9e316fd 100644 --- a/readme.md +++ b/readme.md @@ -8,7 +8,7 @@ > Simplified HTTP/HTTPS requests -[![Build Status](https://travis-ci.org/sindresorhus/got.svg?branch=master)](https://travis-ci.org/sindresorhus/got) +[![Build Status](https://travis-ci.org/sindresorhus/got.svg?branch=master)](https://travis-ci.org/sindresorhus/got) [![Coverage Status](https://coveralls.io/repos/sindresorhus/got/badge.svg?branch=master&service=github)](https://coveralls.io/github/sindresorhus/got?branch=master) A nicer interface to the built-in [`http`](http://nodejs.org/api/http.html) module.