Skip to content

Commit 5ab8df4

Browse files
Coveralls Badge Fix + snyk added (#53)
* Coveralls Badge Fix
1 parent d419dd1 commit 5ab8df4

File tree

6 files changed

+37
-8
lines changed

6 files changed

+37
-8
lines changed

.npmrc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
package-lock=false
21
registry=https://registry.npmjs.org

.snyk

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities.
2+
version: v1.13.3
3+
ignore: {}
4+
patch: {}

.travis.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,5 @@ before_script:
1111
script:
1212
- npm test
1313

14-
after_script: NODE_ENV=test istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -- -R spec && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage
15-
14+
after_script: make test-coveralls
1615

Makefile

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
REPORTER = spec
2+
test:
3+
@$(MAKE) lint
4+
@echo TRAVIS_JOB_ID $(TRAVIS_JOB_ID)
5+
@NODE_ENV=test ./node_modules/.bin/mocha -b --reporter $(REPORTER)
6+
7+
lint:
8+
./node_modules/.bin/jshint ./lib ./test ./index.js
9+
10+
test-cov:
11+
$(MAKE) lint
12+
@NODE_ENV=test ./node_modules/.bin/istanbul cover \
13+
./node_modules/mocha/bin/_mocha -- -R spec
14+
15+
test-coveralls:
16+
@NODE_ENV=test ./node_modules/.bin/istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -- -R spec && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage
17+
18+
19+
20+
.PHONY: test

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
[![Build Status](https://travis-ci.org/intuit/oauth-jsclient.svg?branch=master)](https://travis-ci.org/intuit/oauth-jsclient)
55
[![NPM Package Version](https://img.shields.io/npm/v/intuit-oauth.svg?style=flat-square)](https://www.npmjs.com/package/intuit-oauth)
66
[![Coverage Status](https://coveralls.io/repos/github/intuit/oauth-jsclient/badge.svg)](https://coveralls.io/github/intuit/oauth-jsclient)
7+
[![Known Vulnerabilities](https://snyk.io/test/github/intuit/oauth-jsclient/badge.svg)](https://snyk.io/test/github/intuit/oauth-jsclient)
8+
79

810
# Intuit OAuth2.0 NodeJS Library
911

package.json

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
"start": "node index.js",
88
"karma": "karma start karma.conf.js",
99
"test": "nyc mocha",
10+
"snyk": "snyk test",
1011
"lint": "eslint .",
1112
"fix": "eslint . --fix",
1213
"posttest": "nyc check-coverage",
@@ -32,8 +33,7 @@
3233
"coverage",
3334
".nyc_output",
3435
"sample",
35-
"sample/node_modules",
36-
"test"
36+
"sample/node_modules"
3737
],
3838
"check-coverage": true,
3939
"lines": 85,
@@ -48,6 +48,9 @@
4848
"json"
4949
]
5050
},
51+
"bin": {
52+
"coveralls": "./bin/coveralls.js"
53+
},
5154
"engines": {
5255
"node": ">=7.0.0"
5356
},
@@ -82,20 +85,22 @@
8285
"body-parser": "^1.15.2",
8386
"chai": "^4.1.2",
8487
"chai-as-promised": "^7.1.1",
85-
"chance": "^1.0.13",
88+
"chance": "^1.1.3",
8689
"cors": "^2.8.1",
87-
"coveralls": "^3.0.6",
90+
"coveralls": "^3.0.7",
8891
"eslint": "^4.19.1",
8992
"eslint-config-airbnb-base": "^12.0.0",
9093
"eslint-plugin-import": "^2.9.0",
9194
"express": "^4.14.0",
9295
"is-travis": "^1.0.0",
96+
"istanbul": "^0.4.5",
9397
"mocha": "^5.0.4",
98+
"mocha-lcov-reporter": "^1.3.0",
9499
"nock": "^9.2.3",
95100
"nyc": "^11.6.0",
96101
"phantomjs-prebuilt": "^2.1.4",
97-
"standard": "^11.0.0",
98102
"sinon": "^7.5.0",
103+
"standard": "^11.0.0",
99104
"watchify": "^3.7.0"
100105
}
101106
}

0 commit comments

Comments
 (0)