X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=karma.conf.js;h=10bf372ac7de77375846213f50198fa60c6da49b;hb=e91a095ad6751fdb9a7bd642ad9bc75afbdaac87;hp=821007ee6bbc3ac4e8f69d5faa972e054c2dd51d;hpb=dd7068984dedbfc00522784fb796715f4f514512;p=mirror_novnc.git diff --git a/karma.conf.js b/karma.conf.js index 821007e..10bf372 100644 --- a/karma.conf.js +++ b/karma.conf.js @@ -5,7 +5,8 @@ module.exports = function(config) { var browsers = []; var useSauce = false; - if (process.env.SAUCE_USERNAME && process.env.SAUCE_ACCESS_KEY) { + // use Sauce when running on Travis + if (process.env.TRAVIS_JOB_NUMBER) { useSauce = true; } @@ -60,6 +61,7 @@ module.exports = function(config) { files: [ { pattern: 'vendor/sinon.js', included: false }, { pattern: 'node_modules/sinon-chai/lib/sinon-chai.js', included: false }, + { pattern: 'app/localization.js', included: false }, { pattern: 'core/**/*.js', included: false }, { pattern: 'vendor/pako/**/*.js', included: false }, { pattern: 'tests/test.*.js', included: false }, @@ -89,6 +91,7 @@ module.exports = function(config) { // preprocess matching files before serving them to the browser // available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor preprocessors: { + 'app/localization.js': ['babel'], 'core/**/*.js': ['babel'], 'tests/test.*.js': ['babel'], 'tests/fake.*.js': ['babel'],