add integration build to travis

This commit is contained in:
Wei Lu 2014-05-13 21:50:44 +08:00
parent b99ed46796
commit a71685658b
2 changed files with 6 additions and 1 deletions

View file

@ -4,3 +4,7 @@ before_install:
node_js:
- "0.11"
- "0.10"
env:
- TEST_SUITE=unit
- TEST_SUITE=integration
script: "npm run-script $TEST_SUITE"

View file

@ -39,7 +39,8 @@
"files": "test/*.js"
},
"scripts": {
"test": "./node_modules/.bin/istanbul test ./node_modules/.bin/_mocha -- --reporter list `find test -maxdepth 1 -not -type d`",
"unit": "./node_modules/.bin/istanbul test ./node_modules/.bin/_mocha -- --reporter list `find test -maxdepth 1 -not -type d`",
"test": "npm run-script unit",
"integration": "./node_modules/.bin/_mocha --reporter list test/integration/*.js",
"coverage": "./node_modules/.bin/istanbul cover ./node_modules/.bin/_mocha -- --reporter list test/*.js",
"compile": "./node_modules/.bin/browserify ./src/index.js -s Bitcoin | ./node_modules/.bin/uglifyjs > bitcoinjs-min.js"