-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use codecov for code coverage with the tests
- Loading branch information
1 parent
aa5e13e
commit a798e84
Showing
6 changed files
with
35 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
/node_modules | ||
npm-debug.log | ||
.idea | ||
coverage/ | ||
coverage.lcov | ||
src-cov |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,16 @@ | ||
language: node_js | ||
|
||
node_js: | ||
- 'node' | ||
- '6.0' | ||
- '4.0' | ||
- 'iojs' | ||
- '0.12' | ||
- '0.11' | ||
- '0.10' | ||
|
||
after_success: | ||
- 'npm run coverage' | ||
|
||
notifications: | ||
email: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/bin/sh | ||
set -x | ||
|
||
ROOT=$PWD | ||
|
||
# Make a copy of src into src-cov, with the coverage code. | ||
$ROOT/node_modules/.bin/jscover $ROOT/src $ROOT/src-cov | ||
|
||
# Run the tests. | ||
JSCOV=1 $ROOT/node_modules/.bin/mocha -R mocha-lcov-reporter > $ROOT/coverage.lcov | ||
|
||
# Update the server with the results. | ||
$ROOT/node_modules/.bin/codecov | ||
|
||
# Clean up. | ||
rm -f $ROOT/coverage.lcov | ||
rm -rf $ROOT/src-cov |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters