mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-23 14:15:13 +00:00
refactor: make build-fixtures slient in CI building
This commit is contained in:
parent
f9ccbb5754
commit
03862a10da
@ -48,11 +48,15 @@ for (let fixture of fixtures) {
|
||||
})
|
||||
}
|
||||
|
||||
const concurrency = Math.min(4, cpus().length)
|
||||
const options = {
|
||||
renderer: process.env.CI === true ? 'silent' : 'default',
|
||||
nonTTYRenderer: 'silent',
|
||||
concurrent: Math.min(4, cpus().length)
|
||||
}
|
||||
new Listr([{
|
||||
title: `Build ${fixtures.length} fixtures with concurrency of ${concurrency}`,
|
||||
task: () => new Listr(tasks, {concurrent: concurrency})
|
||||
}], { nonTTYRenderer: 'silent' })
|
||||
title: `Build ${fixtures.length} fixtures with concurrency of ${options.concurrent}`,
|
||||
task: () => new Listr(tasks, {concurrent: options.concurrent})
|
||||
}], options)
|
||||
.run()
|
||||
.catch(console.error) // eslint-disable-line no-console
|
||||
.then(() => process.exit(0))
|
||||
|
Loading…
Reference in New Issue
Block a user