Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 70 lines (63 sloc) 1.806 kb
80d0f98 Vojta Jina chore(travis): clean up logs
vojtajina authored
1 module.exports = function(config, specificOptions) {
29f96c8 Vojta Jina chore: update karma to 0.9.4
vojtajina authored
2 config.set({
3 frameworks: ['jasmine'],
4 autoWatch: true,
5 logLevel: config.LOG_INFO,
6 logColors: true,
33223e2 Vojta Jina chore: set up Sauce Labs with Travis
vojtajina authored
7 browsers: ['Chrome'],
751f058 Vojta Jina chore(travis): increase disconnect timeout
vojtajina authored
8 browserDisconnectTimeout: 10000,
475eddf Vojta Jina chore(karma): longer reconnect timeout
vojtajina authored
9
33223e2 Vojta Jina chore: set up Sauce Labs with Travis
vojtajina authored
10
11 // config for Travis CI
12 sauceLabs: {
80d0f98 Vojta Jina chore(travis): clean up logs
vojtajina authored
13 testName: specificOptions.testName || 'AngularJS',
33223e2 Vojta Jina chore: set up Sauce Labs with Travis
vojtajina authored
14 startConnect: false,
15 tunnelIdentifier: process.env.TRAVIS_JOB_NUMBER
16 },
17
80d0f98 Vojta Jina chore(travis): clean up logs
vojtajina authored
18 // For more browsers on Sauce Labs see:
19 // https://saucelabs.com/docs/platforms/webdriver
33223e2 Vojta Jina chore: set up Sauce Labs with Travis
vojtajina authored
20 customLaunchers: {
21 'SL_Chrome': {
22 base: 'SauceLabs',
23 browserName: 'chrome'
7909ebe Vojta Jina chore: run more browsers on Travis (IE8,IE9,IE10,Safari,FF)
vojtajina authored
24 },
25 'SL_Firefox': {
26 base: 'SauceLabs',
27 browserName: 'firefox'
28 },
29 'SL_Safari': {
30 base: 'SauceLabs',
31 browserName: 'safari',
32 platform: 'Mac 10.8',
33 version: '6'
34 },
35 'SL_IE_8': {
36 base: 'SauceLabs',
37 browserName: 'internet explorer',
38 platform: 'Windows 7',
39 version: '8'
40 },
41 'SL_IE_9': {
42 base: 'SauceLabs',
43 browserName: 'internet explorer',
44 platform: 'Windows 2008',
45 version: '9'
46 },
47 'SL_IE_10': {
48 base: 'SauceLabs',
49 browserName: 'internet explorer',
50 platform: 'Windows 2012',
51 version: '10'
33223e2 Vojta Jina chore: set up Sauce Labs with Travis
vojtajina authored
52 }
53 }
29f96c8 Vojta Jina chore: update karma to 0.9.4
vojtajina authored
54 });
c64a985 Vojta Jina chore: use only polling on Travis/SL
vojtajina authored
55
56
57 if (process.env.TRAVIS) {
80d0f98 Vojta Jina chore(travis): clean up logs
vojtajina authored
58 // TODO(vojta): remove once SauceLabs supports websockets.
59 // This speeds up the capturing a bit, as browsers don't even try to use websocket.
c64a985 Vojta Jina chore: use only polling on Travis/SL
vojtajina authored
60 config.transports = ['xhr-polling'];
80d0f98 Vojta Jina chore(travis): clean up logs
vojtajina authored
61
62 // Debug logging into a file, that we print out at the end of the build.
63 config.loggers.push({
64 type: 'file',
65 filename: process.env.LOGS_DIR + '/' + (specificOptions.logFile || 'karma.log'),
66 level: config.LOG_DEBUG
67 });
c64a985 Vojta Jina chore: use only polling on Travis/SL
vojtajina authored
68 }
29f96c8 Vojta Jina chore: update karma to 0.9.4
vojtajina authored
69 };
Something went wrong with that request. Please try again.