diff --git a/karma.conf.js b/karma.conf.js index 01443cb..28ea8e4 100644 --- a/karma.conf.js +++ b/karma.conf.js @@ -1,8 +1,8 @@ const packageJson = require('./package.json'); +const job = job = process.env.TRAVIS_JOB_NUMBER || process.env.APPVEYOR_JOB_NUMBER; || process.env.JOB_NUMBER || Date.now(); let browsers = [ 'ChromeHeadless' ]; let build = 'localbuild'; let branch = 'local'; -let job = Date.now(); let startConnect = false; const reporters = [ 'progress', 'coverage' ]; const tags = [ `${ packageJson.name }@${ packageJson.version }` ]; @@ -17,12 +17,10 @@ if (process.env.SAUCE_ACCESS_KEY && process.env.SAUCE_USERNAME) { } else if (process.env.APPVEYOR) { browsers = [ 'Firefox', 'ChromeHeadless', 'IE' ]; branch = process.env.APPVEYOR_REPO_BRANCH; - job = process.env.APPVEYOR_JOB_NUMBER; build = `appveyor@${ process.env.APPVEYOR_JOB_NUMBER }`; } else if (process.env.TRAVIS) { browsers = [ 'FirefoxHeadless', 'ChromeHeadless' ]; branch = process.env.TRAVIS_BRANCH; - job = process.env.TRAVIS_JOB_NUMBER; build = `travis@${ process.env.TRAVIS_JOB_NUMBER }`; startConnect = true; } else if (!process.env.KARMA_MANUAL) {