From c242f777a6b923609645097ebad87c440bb6f966 Mon Sep 17 00:00:00 2001 From: AdrieanKhisbe Date: Thu, 3 Dec 2015 08:14:24 +0100 Subject: [PATCH] [travis test] setup coveralls config + update README badges --- .travis.yml | 4 ++++ README.md | 2 +- package.json | 4 +++- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index a79dd13..696701c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -16,6 +16,10 @@ before_install: script: - npm test +after_script: + - npm run cover + - npm run coveralls + matrix: allow_failures: - node_js: "0.10" diff --git a/README.md b/README.md index 6a90f19..8a73170 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # nconf -[![Version npm](https://img.shields.io/npm/v/nconf.svg?style=flat-square)](https://www.npmjs.com/package/nconf)[![npm Downloads](https://img.shields.io/npm/dm/nconf.svg?style=flat-square)](https://www.npmjs.com/package/nconf)[![Build Status](https://img.shields.io/travis/indexzero/nconf/master.svg?style=flat-square)](https://travis-ci.org/indexzero/nconf)[![Dependencies](https://img.shields.io/david/indexzero/nconf.svg?style=flat-square)](https://david-dm.org/indexzero/nconf) +[![Version npm](https://img.shields.io/npm/v/nconf.svg?style=flat-square)](https://www.npmjs.com/package/nconf)[![npm Downloads](https://img.shields.io/npm/dm/nconf.svg?style=flat-square)](https://www.npmjs.com/package/nconf)[![Build Status](https://img.shields.io/travis/indexzero/nconf/master.svg?style=flat-square)](https://travis-ci.org/indexzero/nconf)[![Coverage](https://img.shields.io/coveralls/indexzero/nconf.svg?style=flat-square)](https://coveralls.io/github/indexzero/nconf)[![Dependencies](https://img.shields.io/david/indexzero/nconf.svg?style=flat-square)](https://david-dm.org/indexzero/nconf) Hierarchical node.js configuration with files, environment variables, command-line arguments, and atomic object merging. diff --git a/package.json b/package.json index 903fdef..ee96101 100644 --- a/package.json +++ b/package.json @@ -18,13 +18,15 @@ "yargs": "^3.19.0" }, "devDependencies": { + "coveralls": "^2.11.4", "istanbul": "^0.4.1", "vows": "0.8.x" }, "main": "./lib/nconf", "scripts": { "test": "vows test/*-test.js test/**/*-test.js --spec", - "cover": "istanbul cover vows -- test/*-test.js test/**/*-test.js --spec" + "cover": "istanbul cover vows -- test/*-test.js test/**/*-test.js --spec", + "coveralls": "cat coverage/lcov.info | coveralls" }, "engines": { "node": ">= 0.4.0"