Add coveralls CI

This commit is contained in:
nioc 2019-10-20 17:58:18 +02:00
parent 84c2ce90aa
commit fab1a00f66
4 changed files with 31 additions and 2 deletions

View file

@ -11,4 +11,4 @@ before_script:
script:
- npm run lint
- npm test
- npm run coveralls

View file

@ -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.

26
package-lock.json generated
View file

@ -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",

View file

@ -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 <dev@nioc.eu>",
"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",