mirror of https://github.com/twbs/bootstrap.git
karma.conf.js: switch to `CI === true`. (#28588)
This commit is contained in:
parent
1c7cb61072
commit
060880296a
|
|
@ -27,7 +27,7 @@ const reporters = ['dots']
|
||||||
const detectBrowsers = {
|
const detectBrowsers = {
|
||||||
usePhantomJS: false,
|
usePhantomJS: false,
|
||||||
postDetection(availableBrowser) {
|
postDetection(availableBrowser) {
|
||||||
if (typeof process.env.TRAVIS_JOB_ID !== 'undefined' || availableBrowser.includes('Chrome')) {
|
if (process.env.CI === true || availableBrowser.includes('Chrome')) {
|
||||||
return ['ChromeHeadless']
|
return ['ChromeHeadless']
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue