refactor: use is-ci instead of env.ci

This commit is contained in:
Clark Du 2018-03-21 09:44:50 +08:00
parent eda1f1d1c2
commit f4a34c5664
No known key found for this signature in database
GPG Key ID: D0E5986AF78B86D9

View File

@ -6,6 +6,7 @@ const { cpus } = require('os')
const spawnAsync = require('@expo/spawn-async')
const Listr = require('listr')
const isCI = require('is-ci')
const fixtures = [
'children',
@ -49,7 +50,7 @@ for (let fixture of fixtures) {
}
const options = {
renderer: process.env.CI ? 'silent' : 'default',
renderer: isCI ? 'silent' : 'default',
nonTTYRenderer: 'silent',
concurrent: Math.min(4, cpus().length)
}