Archived
1
0

Output newlines in CI immediately

Perhaps this is causing the output buffering issue with the arm builds.
This commit is contained in:
Asher 2020-03-05 11:39:08 -06:00
parent 8c515029fd
commit c7e6e58387
No known key found for this signature in database
GPG Key ID: D63C1EF81242354A

View File

@ -34,7 +34,7 @@ class Builder {
private async task<T>(message: string, fn: () => Promise<T>): Promise<T> { private async task<T>(message: string, fn: () => Promise<T>): Promise<T> {
const time = Date.now() const time = Date.now()
this.log(`${message}...`, true) this.log(`${message}...`, !process.env.CI)
try { try {
const t = await fn() const t = await fn()
process.stdout.write(`took ${Date.now() - time}ms\n`) process.stdout.write(`took ${Date.now() - time}ms\n`)