2
0
mirror of https://github.com/yagop/node-telegram-bot-api synced 2025-08-30 13:58:27 +00:00

Travis coveralls

This commit is contained in:
yperez
2015-06-29 11:49:27 +02:00
parent ddc9032e41
commit e9ec46a2de
3 changed files with 9 additions and 1 deletions

2
.gitignore vendored
View File

@@ -1 +1,3 @@
node_modules
coverage/
npm-debug.log

View File

@@ -1 +1,3 @@
language: node_js
after_success:
- npm run test-cov

View File

@@ -14,7 +14,8 @@
"bot"
],
"scripts": {
"test": "./node_modules/.bin/mocha test/index.js"
"test": "./node_modules/.bin/mocha test/index.js",
"test-cov": "./node_modules/.bin/istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -- -R spec && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage"
},
"author": "Yago Pérez <yagoperezs@gmail.com>",
"license": "MIT",
@@ -24,7 +25,10 @@
"request": "^2.58.0"
},
"devDependencies": {
"coveralls": "^2.11.2",
"istanbul": "^0.3.17",
"mocha": "^2.2.5",
"mocha-lcov-reporter": "0.0.2",
"should": "^7.0.1"
}
}