Skip to content

Commit

Permalink
Remove CI env variable check in favor of ALLOW_SAUCELABS
Browse files Browse the repository at this point in the history
  • Loading branch information
mkxml committed May 29, 2018
1 parent 4ddde59 commit 59f63cd
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions test/karma.conf.js
@@ -1,12 +1,11 @@
/*eslint no-var:0, object-shorthand:0 */

var coverage = String(process.env.COVERAGE) === 'true',
ci = String(process.env.CI).match(/^(1|true)$/gi),
allowSauce = !String(process.env.ALLOW_SAUCELABS).match(/^(0|false|undefined)$/gi),
pullRequest = !String(process.env.TRAVIS_PULL_REQUEST).match(/^(0|false|undefined)$/gi),
masterBranch = String(process.env.TRAVIS_BRANCH).match(/^master$/gi),
sauceTestBranch = String(process.env.TRAVIS_BRANCH).match(/^sauce-test$/gi),
sauceLabs = allowSauce && ci && !pullRequest && (masterBranch || sauceTestBranch),
sauceLabs = allowSauce && !pullRequest && (masterBranch || sauceTestBranch),
performance = !coverage && String(process.env.PERFORMANCE)!=='false',
webpack = require('webpack');

Expand Down

0 comments on commit 59f63cd

Please sign in to comment.