diff --git a/.travis.yml b/.travis.yml index 76a97bbb5d99..00e9819ebd92 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,4 +6,4 @@ matrix: allow_failures: - node_js: "0.11" fast_finish: true -script: npm install . && npm test +script: npm install . && npm run test-travis diff --git a/package.yaml b/package.yaml index 9f2ed29b79c6..745a71deac26 100644 --- a/package.yaml +++ b/package.yaml @@ -103,6 +103,7 @@ keywords: scripts: test: mocha -R dot ./test/functional ./test/unit + test-travis: mocha -R spec ./test/functional ./test/unit lint: eslint -c ./.eslint.yaml ./lib prepublish: js-yaml package.yaml > package.json diff --git a/test/functional/lib/startup.js b/test/functional/lib/startup.js index 395bb4d4a5a6..0e79b8a405ec 100644 --- a/test/functional/lib/startup.js +++ b/test/functional/lib/startup.js @@ -21,7 +21,7 @@ module.exports.start = function start(dir, conf, cb) { var f = fork(__dirname + '/../../../bin/sinopia' , ['-c', __dirname + '/../' + conf] - , {silent: true} + , {silent: !process.env.TRAVIS} ) forks.push(f) f.on('message', function(msg) {