Skip to content

Commit

Permalink
Merge pull request #12 from stealjs/cover
Browse files Browse the repository at this point in the history
Add coveralls
  • Loading branch information
matthewp committed Mar 3, 2017
2 parents 5635982 + 8465804 commit c53561a
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
coverage/
node_modules/
demo/node_modules/
demo/build/
Expand Down
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
language: node_js
node_js:
- node
script:
- npm run coverage:upload
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
[![npm version](https://badge.fury.io/js/steal-electron.svg)](http://badge.fury.io/js/steal-electron)
[![Build Status](https://travis-ci.org/stealjs/steal-electron.svg?branch=master)](https://travis-ci.org/stealjs/steal-electron)
[![Coverage Status](https://coveralls.io/repos/github/stealjs/steal-electron/badge.svg?branch=master)](https://coveralls.io/github/stealjs/steal-electron?branch=master)

# steal-electron

Expand Down
8 changes: 6 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,16 @@
"description": "Build Electron applications with StealJS",
"main": "lib/main.js",
"scripts": {
"jshint": "jshint lib/. --config",
"jshint": "jshint lib/. --config",
"mocha": "mocha test/test.js",
"test": "npm run jshint && npm run mocha",
"publish": "git push origin && git push origin --tags",
"release:pre": "npm version prerelease && npm publish",
"release:patch": "npm version patch && npm publish",
"release:minor": "npm version minor && npm publish",
"release:major": "npm version major && npm publish"
"release:major": "npm version major && npm publish",
"coverage": "istanbul cover _mocha -- test/test --timeout 600000",
"coverage:upload": "istanbul cover _mocha --report lcovonly -- test/test --timeout 600000 && cat ./coverage/lcov.info | ./node_modules/coveralls-send/bin/coveralls.js"
},
"repository": {
"type": "git",
Expand All @@ -35,6 +37,8 @@
},
"devDependencies": {
"copy": "^0.3.0",
"coveralls-send": "0.0.2",
"istanbul": "^0.4.5",
"jshint": "^2.9.1",
"mocha": "^3.2.0"
}
Expand Down

0 comments on commit c53561a

Please sign in to comment.