Skip to content

Commit

Permalink
Add tools for coverage report
Browse files Browse the repository at this point in the history
  • Loading branch information
alefteris committed Feb 5, 2016
1 parent 4c5f502 commit 37d76e7
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
coverage/
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
node_modules/
npm-debug.log
coverage/
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ node_js:
- '4.2'
- '5.5'
script: 'npm run ci'
after_script: "npm i coveralls && cat ./coverage/lcov.info | coveralls"
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# greece-vehicle-plate [![Build Status](https://travis-ci.org/greecejs/greece-vehicle-plate.svg?branch=master)](https://travis-ci.org/greecejs/greece-vehicle-plate)
# greece-vehicle-plate [![Build Status](https://travis-ci.org/greecejs/greece-vehicle-plate.svg?branch=master)](https://travis-ci.org/greecejs/greece-vehicle-plate) [![Coverage Status](https://coveralls.io/repos/github/greecejs/greece-vehicle-plate/badge.svg?branch=master)](https://coveralls.io/github/greecejs/greece-vehicle-plate?branch=master)

> Check that a vehicle registration plate number used in Greece is valid.
Expand Down
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"scripts": {
"test": "node test.js",
"lint": "eslint .",
"ci": "npm run lint && npm test"
"cover": "istanbul cover test.js",
"ci": "npm run lint && npm run cover"
},
"repository": {
"type": "git",
Expand Down Expand Up @@ -40,6 +41,7 @@
],
"devDependencies": {
"eslint": "^2.0.0-rc.0",
"istanbul": "^0.4.2",
"tape": "^4.4.0"
}
}

0 comments on commit 37d76e7

Please sign in to comment.