diff --git a/.travis.yml b/.travis.yml index 14cbac1..f480723 100644 --- a/.travis.yml +++ b/.travis.yml @@ -11,4 +11,4 @@ before_script: script: - npm run lint - - npm test + - npm run coveralls diff --git a/README.md b/README.md index 6b2b7d6..47702a1 100644 --- a/README.md +++ b/README.md @@ -3,6 +3,7 @@ [![license: AGPLv3](https://img.shields.io/badge/license-AGPLv3-blue.svg)](https://www.gnu.org/licenses/agpl-3.0) [![GitHub release](https://img.shields.io/github/release/nioc/xmpp-bot.svg)](https://github.com/nioc/xmpp-bot/releases/latest) [![Build Status](https://travis-ci.org/nioc/xmpp-bot.svg?branch=master)](https://travis-ci.org/nioc/xmpp-bot) +[![Coverage Status](https://coveralls.io/repos/github/nioc/xmpp-bot/badge.svg?branch=master)](https://coveralls.io/github/nioc/xmpp-bot?branch=master) XMPP Bot is a tiny little bot making the link between XMPP conversations and webhooks. diff --git a/package-lock.json b/package-lock.json index 0edf747..09529fb 100644 --- a/package-lock.json +++ b/package-lock.json @@ -943,6 +943,20 @@ "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz", "integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac=" }, + "coveralls": { + "version": "3.0.7", + "resolved": "https://registry.npmjs.org/coveralls/-/coveralls-3.0.7.tgz", + "integrity": "sha512-mUuH2MFOYB2oBaA4D4Ykqi9LaEYpMMlsiOMJOrv358yAjP6enPIk55fod2fNJ8AvwoYXStWQls37rA+s5e7boA==", + "dev": true, + "requires": { + "growl": "~> 1.10.0", + "js-yaml": "^3.13.1", + "lcov-parse": "^0.0.10", + "log-driver": "^1.2.7", + "minimist": "^1.2.0", + "request": "^2.86.0" + } + }, "cp-file": { "version": "6.2.0", "resolved": "https://registry.npmjs.org/cp-file/-/cp-file-6.2.0.tgz", @@ -3379,6 +3393,12 @@ "package-json": "^4.0.0" } }, + "lcov-parse": { + "version": "0.0.10", + "resolved": "https://registry.npmjs.org/lcov-parse/-/lcov-parse-0.0.10.tgz", + "integrity": "sha1-GwuP+ayceIklBYK3C3ExXZ2m2aM=", + "dev": true + }, "levn": { "version": "0.3.0", "resolved": "https://registry.npmjs.org/levn/-/levn-0.3.0.tgz", @@ -3427,6 +3447,12 @@ "integrity": "sha1-+wMJF/hqMTTlvJvsDWngAT3f7bI=", "dev": true }, + "log-driver": { + "version": "1.2.7", + "resolved": "https://registry.npmjs.org/log-driver/-/log-driver-1.2.7.tgz", + "integrity": "sha512-U7KCmLdqsGHBLeWqYlFA0V0Sl6P08EE1ZrmA9cxjUE0WVqT9qnyVDPz1kzpFEP0jdJuFnasWIfSd7fsaNXkpbg==", + "dev": true + }, "log-symbols": { "version": "2.2.0", "resolved": "https://registry.npmjs.org/log-symbols/-/log-symbols-2.2.0.tgz", diff --git a/package.json b/package.json index 6d34bc9..495153e 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,8 @@ "start": "NODE_ENV=production node lib/server.js", "lint": "eslint .", "test": "mocha", - "cover": "nyc --reporter=html --reporter=text mocha" + "cover": "nyc --reporter=html --reporter=text mocha", + "coveralls": "nyc npm test && nyc report --reporter=text-lcov | coveralls" }, "author": "nioc ", "license": "AGPL-3.0-or-later", @@ -30,6 +31,7 @@ }, "devDependencies": { "chai": "^4.2.0", + "coveralls": "^3.0.7", "eslint": "^6.5.1", "eslint-config-standard": "^12.0.0", "eslint-plugin-import": "^2.18.2",