ci-tests fixes

This commit is contained in:
Ibby Hadeed 2017-05-14 03:26:11 -04:00
parent 749fd8af43
commit 02cc615c21

View File

@ -17,14 +17,14 @@ exec(`git branch | grep \\* | cut -d ' ' -f2`)
} }
}) })
.then((output) => { .then((output) => {
if (output.stderr) { if (output && output.stderr) {
return Promise.reject(output.stderr); return Promise.reject(output.stderr);
} }
console.log('Checking for differences ...'); console.log('Checking for differences ...');
return exec(`git diff --name-status origin master`) return exec(`git diff --name-status origin master`)
}) })
.then((output) => { .then((output) => {
if (output.stderr) { if (output && output.stderr) {
return Promise.reject(output.stderr); return Promise.reject(output.stderr);
} }
@ -40,7 +40,7 @@ exec(`git branch | grep \\* | cut -d ' ' -f2`)
}) })
.then((output) => { .then((output) => {
if (output.stderr) { if (output && output.stderr) {
return Promise.reject(output.stderr); return Promise.reject(output.stderr);
} }
@ -52,7 +52,7 @@ exec(`git branch | grep \\* | cut -d ' ' -f2`)
return exec(`npm run build:modules ${diff.join(' ')} --silent`); return exec(`npm run build:modules ${diff.join(' ')} --silent`);
}) })
.then((output) => { .then((output) => {
if (output.stderr) { if (output && output.stderr) {
console.log(output.stderr); console.log(output.stderr);
process.exit(1); process.exit(1);
} }