Skip to content

Commit

Permalink
Add coveralls integration
Browse files Browse the repository at this point in the history
  • Loading branch information
Kikobeats committed Mar 20, 2016
1 parent 6f77635 commit fc9b6d5
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 3 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,6 @@ addons:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-4.8
- g++-4.8
script: npm run-script coveralls
after_script: "cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js"
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,10 @@
"devDependencies": {
"cheerio": "~0.20.0",
"concat-stream": "^1.5.1",
"coveralls": "~2.11.8",
"istanbul": "~0.4.2",
"mocha": "latest",
"mocha-lcov-reporter": "~1.2.0",
"multiline": "^1.0.2",
"rimraf": "^2.3.2",
"standard": "~6.0.8",
Expand All @@ -52,7 +54,8 @@
},
"scripts": {
"pretest": "standard",
"test": "istanbul cover mocha -- -u exports -R spec"
"test": "mocha",
"coveralls": "./node_modules/.bin/istanbul cover ./node_modules/.bin/_mocha --report lcovonly"
},
"license": "MIT"
}
1 change: 0 additions & 1 deletion test/mocha.opts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
--bail
--harmony
--reporter spec
--timeout 20s

0 comments on commit fc9b6d5

Please sign in to comment.