From: XhmikosR Date: Mon, 1 Apr 2019 14:26:43 +0000 (+0300) Subject: karma.conf.js: switch to `CI === true`. (#28588) X-Git-Tag: v5.0.0-alpha1~1164 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=efb9a7749f2d270050bd935492ee9992ceb43714;p=thirdparty%2Fbootstrap.git karma.conf.js: switch to `CI === true`. (#28588) --- diff --git a/js/tests/karma.conf.js b/js/tests/karma.conf.js index 16f07cbf1a..276610b801 100644 --- a/js/tests/karma.conf.js +++ b/js/tests/karma.conf.js @@ -30,7 +30,7 @@ const reporters = ['dots'] const detectBrowsers = { usePhantomJS: false, postDetection(availableBrowser) { - if (typeof env.TRAVIS_JOB_ID !== 'undefined' || availableBrowser.includes('Chrome')) { + if (env.CI === true || availableBrowser.includes('Chrome')) { return debug ? ['Chrome'] : ['ChromeHeadless'] }