Sha256: cb3c592fe01cd14f27f47801fffa72fbabdc4cd72108a7fd1b46c845660116b6

Contents?: true

Size: 1.17 KB

Versions: 10

Compression:

Stored size: 1.17 KB

Contents

var version = require('./package.json').version;
var ts = new Date().getTime();

module.exports = function(config) {
  var auth;

  try {
    auth = require('./test/auth/index');
  } catch(ex) {
    auth = {};
    auth.SAUCE_USERNAME = process.env.SAUCE_USERNAME || null;
    auth.SAUCE_ACCESS_KEY = process.env.SAUCE_ACCESS_KEY || null;
  }

  if (!auth.SAUCE_USERNAME || !auth.SAUCE_ACCESS_KEY) return;
  if (process.env.SKIP_SAUCE) return;

  var branch = process.env.TRAVIS_BRANCH || 'local'
  var browserConfig = require('./sauce.browsers');
  var browsers = Object.keys(browserConfig);
  var tags = [ 'chaijs_' + version, auth.SAUCE_USERNAME + '@' + branch ];
  var tunnel = process.env.TRAVIS_JOB_NUMBER || ts;

  if (process.env.TRAVIS_JOB_NUMBER) {
    tags.push('travis@' + process.env.TRAVIS_JOB_NUMBER);
  }

  config.browsers = config.browsers.concat(browsers);
  config.customLaunchers = browserConfig;
  config.reporters.push('saucelabs');
  config.transports = [ 'xhr-polling' ];

  config.sauceLabs = {
      username: auth.SAUCE_USERNAME
    , accessKey: auth.SAUCE_ACCESS_KEY
    , startConnect: true
    , tags: tags
    , testName: 'ChaiJS'
    , tunnelIdentifier: tunnel
  };
};

Version data entries

10 entries across 10 versions & 3 rubygems

Version Path
mdarray-sol-0.1.0-java node_modules/chai/karma.sauce.js
select_all-rails-0.3.1 node_modules/chai/karma.sauce.js
ende-0.5.22 components/indefinido/indemma/master/components/chaijs/chai/1.9.1/karma.sauce.js
ende-0.5.21 components/indefinido/indemma/master/components/chaijs/chai/1.9.1/karma.sauce.js
ende-0.5.6 components/chaijs/chai/1.9.1/karma.sauce.js
ende-0.5.5 components/chaijs/chai/1.9.1/karma.sauce.js
ende-0.5.4 components/chaijs/chai/1.9.1/karma.sauce.js
ende-0.5.3 components/chaijs/chai/1.9.1/karma.sauce.js
ende-0.5.2 components/chaijs/chai/1.9.1/karma.sauce.js
ende-0.5.1 components/chaijs/chai/1.9.1/karma.sauce.js