Skip to content

Commit

Permalink
adding support for coverage and coveralls
Browse files Browse the repository at this point in the history
  • Loading branch information
dmill-bz committed Mar 20, 2016
1 parent 28f7446 commit 3a1c718
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ npm-debug.log
lib
umd
/coverage
.coveralls.yml
3 changes: 3 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,6 @@ before_script:
- npm run build

script: npm run test:node

after_script:
- npm run coverage:travis
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
[![Build Status](https://travis-ci.org/jbmusso/gremlin-javascript.svg?branch=master)](https://travis-ci.org/jbmusso/gremlin-javascript) [![Coverage Status](https://coveralls.io/repos/github/jbmusso/gremlin-javascript/badge.svg?branch=master)](https://coveralls.io/github/jbmusso/gremlin-javascript?branch=master)

gremlin-javascript
==================

Expand Down
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"build:min": "NODE_ENV=production webpack -p src/index.js umd/gremlin.min.js",
"build:watch": "npm run build -- --watch",
"coverage": "babel-node ./node_modules/istanbul/lib/cli.js cover _mocha",
"coverage:travis": "babel-node ./node_modules/istanbul/lib/cli.js cover _mocha --report lcovonly -- -R spec && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage",
"test:node": "mocha ./test --compilers js:babel-register --recursive --reporter spec",
"test:node:watch": "npm run test:node -- --watch"
},
Expand Down Expand Up @@ -66,6 +67,7 @@
"karma-mocha": "^0.1.10",
"karma-safari-launcher": "^0.1.1",
"mocha": "^1.21.4",
"mocha-lcov-reporter": "^1.2.0",
"serve-static": "^1.5.3",
"vinyl-source-stream": "^1.0.0",
"webpack": "^1.12.11",
Expand Down

0 comments on commit 3a1c718

Please sign in to comment.