Skip to content

Commit

Permalink
Merge pull request #1 from ajuste/feature/coverge
Browse files Browse the repository at this point in the history
chore: add coverage
  • Loading branch information
ajuste committed Apr 25, 2017
2 parents ef7f6ba + 5989257 commit fb4dc89
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 3 deletions.
1 change: 1 addition & 0 deletions .coveralls.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
service_name: travis-ci
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ node_js:
- "6.10.0"
script: npm test
sudo: false
after_success: 'npm run cover'
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,7 @@ run-coffee-link:
./node_modules/coffeelint/bin/coffeelint .

test: compile-tests run-coffee-link
./node_modules/mocha/bin/mocha ./test-compiled/**/*.js
./node_modules/istanbul/lib/cli.js cover ./node_modules/mocha/bin/_mocha ./test-compiled/**/*.js

cover:
cat ./coverage/lcov.info | ./node_modules/.bin/coveralls
7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@
"description": "utils for jaune system",
"main": "index.js",
"scripts": {
"test": "make compile-tests && ./node_modules/mocha/bin/mocha ./test/*",
"prepublish": "make compile"
"test": "make test",
"prepublish": "make compile",
"cover": "make cover"
},
"license": "ISC",
"repository": {
Expand All @@ -32,6 +33,8 @@
"assert": "^1.3.0",
"coffee-script": "^1.10.0",
"coffeelint": "^1.16.0",
"coveralls": "^2.13.0",
"istanbul": "^0.4.5",
"mocha": "^2.4.5"
}
}

0 comments on commit fb4dc89

Please sign in to comment.