This repository has been archived by the owner on Jun 21, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathkarma.conf-ci.js
57 lines (52 loc) · 1.58 KB
/
karma.conf-ci.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
/*
* This file is part of the serializerjs package.
*
* (c) HAIRCVT <[email protected]>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
var baseConfig = require('./karma.conf.dist');
var fs = require('fs');
module.exports = function(config) {
// Browsers to run on Sauce Labs
var customLaunchers = {
SL_Chrome: {
base: 'SauceLabs',
browserName: 'chrome',
},
SL_InternetExplorer: {
base: 'SauceLabs',
browserName: 'internet explorer',
version: '10',
},
SL_FireFox: {
base: 'SauceLabs',
browserName: 'firefox',
},
};
var sauceConfig = Object.assign(
baseConfig,
{
reporters: ['dots', 'saucelabs'],
sauceLabs: {
build: 'Travis #' + process.env.TRAVIS_BUILD_NUMBER + ' (' + process.env.TRAVIS_BUILD_ID + ')',
testName: 'Serializer.js',
tunnelIdentifier: process.env.TRAVIS_JOB_NUMBER,
startConnect: false,
connectOptions: {
port: 5757,
logfile: 'sauce_connect.log',
},
},
captureTimeout: 2 * 60 * 1000,
customLaunchers: customLaunchers,
browsers: Object.keys(customLaunchers),
singleRun: true,
concurrency: 2,
}
);
console.log(sauceConfig);
//console.log(sauceConfig.frameworks);
config.set(sauceConfig);
};