Update karma.conf.js

This commit is contained in:
当耐特 2018-05-24 06:47:13 +08:00 committed by GitHub
parent 3509067b62
commit ea071c82fa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 5 deletions

View File

@ -1,11 +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),
pullRequest = !String(process.env.TRAVIS_PULL_REQUEST).match(/^(0|false|undefined)$/gi),
masterBranch = String(process.env.TRAVIS_BRANCH).match(/^master$/gi),
//sauceLabs = ci && !pullRequest && masterBranch,
sauceLabs = false,
// ci = String(process.env.CI).match(/^(1|true)$/gi),
// pullRequest = !String(process.env.TRAVIS_PULL_REQUEST).match(/^(0|false|undefined)$/gi),
// masterBranch = String(process.env.TRAVIS_BRANCH).match(/^master$/gi),
// sauceLabs = ci && !pullRequest && masterBranch,
sauceLabs = false,
performance = !coverage && String(process.env.PERFORMANCE)!=='false',
webpack = require('webpack');