Browse Source

add integration build to travis

hk-custom-address
Wei Lu 11 years ago
parent
commit
a71685658b
  1. 4
      .travis.yml
  2. 3
      package.json

4
.travis.yml

@ -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"

3
package.json

@ -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"

Loading…
Cancel
Save