1 Star 0 Fork 0

Shinn/chai

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
karma.sauce.js 1.20 KB
一键复制 编辑 原始数据 按行查看 历史
Keith Cirkel 提交于 2016-02-08 23:05 . chore: tweak saucelab build settings
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.captureTimeout = 300000;
config.sauceLabs = {
username: auth.SAUCE_USERNAME
, accessKey: auth.SAUCE_ACCESS_KEY
, startConnect: ('TRAVIS' in process.env) === false
, tags: tags
, testName: 'ChaiJS'
, tunnelIdentifier: tunnel
};
};
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/syanjun/chai.git
git@gitee.com:syanjun/chai.git
syanjun
chai
chai
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385