fix: Fail bench build in CI environment

This commit is contained in:
Faris Ansari 2018-11-14 20:30:54 +05:30
parent fc663d7b5d
commit a7613c174e

View file

@ -63,7 +63,13 @@ function build_assets(app) {
function build(inputOptions, outputOptions) {
return rollup.rollup(inputOptions)
.then(bundle => bundle.write(outputOptions))
.catch(err => log(chalk.red(err)));
.catch(err => {
log(chalk.red(err));
// Kill process to fail in a CI environment
if (process.env.CI) {
process.kill(process.pid)
}
});
}
function concatenate_files() {