fix: Fail bench build in CI environment
This commit is contained in:
parent
fc663d7b5d
commit
a7613c174e
1 changed files with 7 additions and 1 deletions
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue