Skip to content

Commit

Permalink
Add nyc and coveralls (#497)
Browse files Browse the repository at this point in the history
  • Loading branch information
ralphtheninja committed Jul 15, 2018
1 parent 0f5f554 commit 819946c
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,4 @@ leakydb
npm-debug.log
prebuilds/
yarn.lock
.nyc_output
1 change: 1 addition & 0 deletions .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,4 @@ README
INSTALL
NEWS
AUTHORS
.nyc_output/
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,5 @@ node_js:
- 6
- 8
- 10

after_success: npm run coverage
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
[![AppVeyor](https://img.shields.io/appveyor/ci/Level/leveldown.svg?label=appveyor)](https://ci.appveyor.com/project/Level/leveldown)
[![dependencies](https://david-dm.org/Level/leveldown.svg)](https://david-dm.org/level/leveldown)
[![npm](https://img.shields.io/npm/dm/leveldown.svg)](https://www.npmjs.com/package/leveldown)
[![Coverage Status](https://coveralls.io/repos/github/Level/leveldown/badge.svg)](https://coveralls.io/github/Level/leveldown)
[![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)

* [Introduction](#introduction)
Expand Down
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,14 @@
},
"devDependencies": {
"async": "^2.0.1",
"coveralls": "^3.0.2",
"delayed": "~1.0.1",
"du": "~0.1.0",
"faucet": "0.0.1",
"iota-array": "~1.0.0",
"lexicographic-integer": "~1.1.0",
"mkfiletree": "~1.0.1",
"monotonic-timestamp": "~0.0.8",
"nyc": "^12.0.2",
"optimist": "~0.6.1",
"prebuild": "^7.0.0",
"prebuild-ci": "^2.0.0",
Expand All @@ -43,7 +44,8 @@
},
"scripts": {
"install": "prebuild-install || node-gyp rebuild",
"test": "standard && verify-travis-appveyor && (tape test/*-test.js | faucet) && prebuild-ci",
"test": "standard && verify-travis-appveyor && nyc tape test/*-test.js && prebuild-ci",
"coverage": "nyc report --reporter=text-lcov | coveralls",
"rebuild": "prebuild --compile",
"prebuild": "prebuild --all --strip --verbose",
"changelog": "remark CHANGELOG.md -o"
Expand Down

0 comments on commit 819946c

Please sign in to comment.