On Github saintedlama / be-a-good-npm-module
"scripts": {
    "test": "mocha -R spec test/",
    "cover": "istanbul cover
        ./node_modules/mocha/bin/_mocha --report html -- -R spec"
}
                language: node_js
node_js:
- "0.10"
services:
- mongodb
before_script:
- npm install -g istanbul
- npm install coveralls
- npm install mocha-lcov-reporter
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