diff --git a/.travis.yml b/.travis.yml index 84af85e..e5debe2 100644 --- a/.travis.yml +++ b/.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" diff --git a/package.json b/package.json index 1a65c9b..495e486 100644 --- a/package.json +++ b/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"