From 8c80d50aa906e395cd356af52bbcb3defe4109c8 Mon Sep 17 00:00:00 2001 From: AdalcinoJunior Date: Sat, 24 Aug 2019 18:40:24 -0300 Subject: [PATCH 1/4] Updated .travis.yml --- .travis.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.travis.yml b/.travis.yml index 6d79142..0db188d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,3 +7,5 @@ node_js: cache: directories: - node_modules + +after_success: npm run test:coverage \ No newline at end of file From cf458e7b1c9442bae8c91c687db900af0f4836d2 Mon Sep 17 00:00:00 2001 From: AdalcinoJunior Date: Sat, 24 Aug 2019 18:49:04 -0300 Subject: [PATCH 2/4] Add coveralls.io --- package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 1ab0c1c..c7c9d8c 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,7 @@ "test": "mocha --opts test/mocha.opts test/**/*.spec.js", "test:unit": "mocha --opts test/mocha.opts test/unit/*.spec.js", "test:integration": "mocha --opts test/mocha.opts test/integration/*.spec.js", - "test:coverage": "nyc --clean --all --reporter=html --reporter=text mocha --opts test/mocha.opts test/**/*.spec.js" + "test:coverage": "nyc --clean --all --reporter=html --reporter=text mocha --opts test/mocha.opts test/**/*.spec.js | coveralls" }, "repository": { "type": "git", @@ -28,6 +28,7 @@ "homepage": "https://github.com/adalcinojunior/simple-express-authorization#readme", "devDependencies": { "chai": "^4.2.0", + "coveralls": "^3.0.6", "mocha": "^6.2.0", "nyc": "^14.1.1", "sinon": "^7.4.1", From aad8f29212df99ca844ad83b823ebc7df692f164 Mon Sep 17 00:00:00 2001 From: AdalcinoJunior Date: Sat, 24 Aug 2019 18:55:07 -0300 Subject: [PATCH 3/4] Updated .travis.yml and package.json --- .travis.yml | 2 +- package.json | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 0db188d..dbd7d3b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -8,4 +8,4 @@ cache: directories: - node_modules -after_success: npm run test:coverage \ No newline at end of file +after_success: npm run coveralls \ No newline at end of file diff --git a/package.json b/package.json index c7c9d8c..d0ecb3a 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,8 @@ "test": "mocha --opts test/mocha.opts test/**/*.spec.js", "test:unit": "mocha --opts test/mocha.opts test/unit/*.spec.js", "test:integration": "mocha --opts test/mocha.opts test/integration/*.spec.js", - "test:coverage": "nyc --clean --all --reporter=html --reporter=text mocha --opts test/mocha.opts test/**/*.spec.js | coveralls" + "test:coverage": "nyc --clean --all --reporter=html --reporter=text mocha --opts test/mocha.opts test/**/*.spec.js", + "coveralls": "nyc report --reporter=text-lcov | coveralls" }, "repository": { "type": "git", @@ -34,4 +35,4 @@ "sinon": "^7.4.1", "supertest": "^4.0.2" } -} +} \ No newline at end of file From 421f5c68512918c408aebf810a3907be642209b0 Mon Sep 17 00:00:00 2001 From: AdalcinoJunior Date: Sat, 24 Aug 2019 19:00:58 -0300 Subject: [PATCH 4/4] Updated README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 8d0f9b4..2f7d17e 100644 --- a/README.md +++ b/README.md @@ -8,8 +8,8 @@ Ideal for app express or derivative such as express-gateway [![chai](https://img.shields.io/badge/chai-v4.2.0-orange.svg?style=flat-square&logo=chai)](https://www.npmjs.com/package/chai) [![supertest](https://img.shields.io/badge/supertest-v4.2.0-green.svg?style=flat-square&logo=supertest)](https://www.npmjs.com/package/supertest) [![nyc](https://img.shields.io/badge/nyc-v14.1.1-blue.svg?style=flat-square&logo=nyc)](https://www.npmjs.com/package/nyc) -[![Coverage Status](https://coveralls.io/repos/github/adalcinojunior/simple-express-authorization/badge.svg?branch=develop)](https://coveralls.io/github/adalcinojunior/simple-express-authorization?branch=develop) -[![Build Status](https://travis-ci.com/adalcinojunior/simple-express-authorization.svg?branch=develop)](https://travis-ci.com/adalcinojunior/simple-express-authorization.svg?branch=develop) +[![Coverage Status](https://coveralls.io/repos/github/adalcinojunior/simple-express-authorization/badge.svg?branch=master)](https://coveralls.io/github/adalcinojunior/simple-express-authorization?branch=master) +[![Build Status](https://travis-ci.com/adalcinojunior/simple-express-authorization.svg?branch=master)](https://travis-ci.com/adalcinojunior/simple-express-authorization.svg?branch=master) ## Installation