Skip to content

Commit

Permalink
Add test scripts.
Browse files Browse the repository at this point in the history
  • Loading branch information
沉鱼 committed Dec 23, 2015
1 parent e403cda commit 7f74dc6
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 4 deletions.
12 changes: 9 additions & 3 deletions .travis.yml
@@ -1,5 +1,11 @@
sudo: false
language: node_js
node_js:
- '0.10'
- '0.11'
script: make test
- '4'
- '3'
- '2'
- '1'
script:
- "npm run test && npm run test-cov"
after_script:
- "npm i codecov.io && cat ./coverage/coverage.json | ./node_modules/codecov.io/bin/codecov.io.js"
9 changes: 8 additions & 1 deletion package.json
Expand Up @@ -10,6 +10,10 @@
"engine"
],
"author": "fool2fish <fool2fish@gmail.com>",
"scripts": {
"test": "mocha -R spec -t 15000 -r should test/*.test.js",
"test-cov": "istanbul cover node_modules/.bin/_mocha -- -t 15000 -r should test/*.test.js"
},
"dependencies": {
"colorful": "~2.1.0",
"commander": "~2.3.0",
Expand All @@ -22,7 +26,10 @@
"mocha": "*",
"should": "3.3.1",
"istanbul": "*",
"cov": "*"
"cov": "*",
"jshint": "*",
"mocha": "*",
"should": "~5.2.0"
},
"repository": {
"type": "git",
Expand Down

0 comments on commit 7f74dc6

Please sign in to comment.