fix c9 build failing silently

pull/117/merge
nightwing 2015-05-29 19:01:06 +04:00
rodzic db931d638f
commit 288a3be0d9
2 zmienionych plików z 11 dodań i 4 usunięć

Wyświetl plik

@ -293,7 +293,7 @@ define(function(require, exports, module) {
if (err) return callback(err);
function installNPM(){
spawn(join(process.env.HOME, ".c9/node/bin/npm"), {
spawn(join(process.env.HOME, process.platform == "win32"? ".c9/npm.cmd" : ".c9/node/bin/npm"), {
args: ["install"],
cwd: packagePath
}, function(err) {

Wyświetl plik

@ -159,7 +159,14 @@ define(function(require, exports, module) {
}
else {
dryRun = true;
publish({local: true}, function(){});
publish({local: true}, function(err){
if (err) {
console.error(err);
if (!verbose)
console.error("\nTry running with --verbose flag for more information");
process.exit(1);
}
});
}
}
});
@ -296,8 +303,8 @@ define(function(require, exports, module) {
warned = true;
}
else if (!fs.existsSync(join(cwd, name.replace(/\.js$/, "_test.js")))) {
console.warn("ERROR: Plugin '" + name + "' has no test associated with it. There must be a file called '" + name + "_test.js' containing tests.");
failed = true;
console.warn("ERROR: Plugin '" + name + "' has no test associated with it. There must be a file called '" + name.replace(/\.js$/, "") + "_test.js' containing tests.");
warned = true;
}
});