test after running request script

This commit is contained in:
ibrahim0814 2019-11-12 13:59:17 -08:00
parent 2a95d0b649
commit 224e1a7a68

View file

@ -26,7 +26,20 @@ try {
request('http://codecov.io/bash', (error, response, body) => {
console.log('error:', error);
console.log('statusCode:', response && response.statusCode);
console.log('body:', body);
//console.log('body:', body);
const command = `bash ${body} -t ${token} -n ${name} -F ${flags} -f ${file}`
//const command = `bash ${body} -t ${token} -n ${name} -F ${flags} -f ${file}`
exec(command, (err, stdout, stderr) => {
if (err) {
//some err occurred
console.error(err)
} else {
// the *entire* stdout and stderr (buffered)
console.log(`stdout: ${stdout}`);
console.log(`stderr: ${stderr}`);
}
});
});