log smv in to console, attach scm stderr to error

This commit is contained in:
oleg 2015-07-07 23:09:41 +03:00
parent a6c88f2aca
commit cfe9c682ae
3 changed files with 7 additions and 1 deletions

View File

@ -41,6 +41,10 @@ Executor.prototype._getSources = function(params, callback) {
}
scm = self._createScm(scmParams);
scm.on('stdin', function(data) {
self.emit('data', '> ' + String(data));
});
if (isFirstRun) {
this.pass(null);
} else {

View File

@ -10,6 +10,8 @@ function Scm(params) {
'`repository` or `cwd` must be set'
);
this.collectOut = true;
this.emitIn = true;
this.attachStderr = true;
}
exports.Scm = Scm;

View File

@ -6,7 +6,7 @@
"nci": "bin/nci"
},
"scripts": {
"test": "mocha --bail --reporter=spec test/index",
"test": "mocha --bail --reporter=spec test/index --timeout 3000",
"dev": "gulp",
"sync": "npm install && npm prune && bower install && bower prune"
},