|
80d0f98
vojtajina authored
|
||
| 1 | module.exports = function(config, specificOptions) { | |
|
29f96c8
vojtajina authored
|
||
| 2 | config.set({ | |
| 3 | frameworks: ['jasmine'], | |
| 4 | autoWatch: true, | |
| 5 | logLevel: config.LOG_INFO, | |
| 6 | logColors: true, | |
|
33223e2
vojtajina authored
|
||
| 7 | browsers: ['Chrome'], | |
|
751f058
vojtajina authored
|
||
| 8 | browserDisconnectTimeout: 10000, | |
|
475eddf
vojtajina authored
|
||
| 9 | ||
|
33223e2
vojtajina authored
|
||
| 10 | ||
| 11 | // config for Travis CI | |
| 12 | sauceLabs: { | |
|
80d0f98
vojtajina authored
|
||
| 13 | testName: specificOptions.testName || 'AngularJS', | |
|
33223e2
vojtajina authored
|
||
| 14 | startConnect: false, | |
| 15 | tunnelIdentifier: process.env.TRAVIS_JOB_NUMBER | |
| 16 | }, | |
| 17 | ||
|
ffd075b
vojtajina authored
|
||
| 18 | // BrowserStack config for Travis CI | |
| 19 | browserStack: { | |
|
b08427d
vojtajina authored
|
||
| 20 | startTunnel: false, | |
| 21 | project: 'AngularJS', | |
| 22 | name: specificOptions.testName, | |
| 23 | build: process.env.TRAVIS_BUILD_NUMBER | |
|
ffd075b
vojtajina authored
|
||
| 24 | }, | |
| 25 | ||
|
80d0f98
vojtajina authored
|
||
| 26 | // For more browsers on Sauce Labs see: | |
| 27 | // https://saucelabs.com/docs/platforms/webdriver | |
|
33223e2
vojtajina authored
|
||
| 28 | customLaunchers: { | |
| 29 | 'SL_Chrome': { | |
| 30 | base: 'SauceLabs', | |
| 31 | browserName: 'chrome' | |
|
7909ebe
vojtajina authored
|
||
| 32 | }, | |
| 33 | 'SL_Firefox': { | |
| 34 | base: 'SauceLabs', | |
| 35 | browserName: 'firefox' | |
| 36 | }, | |
| 37 | 'SL_Safari': { | |
| 38 | base: 'SauceLabs', | |
| 39 | browserName: 'safari', | |
| 40 | platform: 'Mac 10.8', | |
| 41 | version: '6' | |
| 42 | }, | |
| 43 | 'SL_IE_8': { | |
| 44 | base: 'SauceLabs', | |
| 45 | browserName: 'internet explorer', | |
| 46 | platform: 'Windows 7', | |
| 47 | version: '8' | |
| 48 | }, | |
| 49 | 'SL_IE_9': { | |
| 50 | base: 'SauceLabs', | |
| 51 | browserName: 'internet explorer', | |
| 52 | platform: 'Windows 2008', | |
| 53 | version: '9' | |
| 54 | }, | |
| 55 | 'SL_IE_10': { | |
| 56 | base: 'SauceLabs', | |
| 57 | browserName: 'internet explorer', | |
| 58 | platform: 'Windows 2012', | |
| 59 | version: '10' | |
|
ffd075b
vojtajina authored
|
||
| 60 | }, | |
| 61 | ||
| 62 | 'BS_Chrome': { | |
| 63 | base: 'BrowserStack', | |
| 64 | browser: 'chrome', | |
| 65 | os: 'OS X', | |
| 66 | os_version: 'Mountain Lion' | |
| 67 | }, | |
| 68 | 'BS_Safari': { | |
| 69 | base: 'BrowserStack', | |
| 70 | browser: 'safari', | |
| 71 | os: 'OS X', | |
| 72 | os_version: 'Mountain Lion' | |
| 73 | }, | |
| 74 | 'BS_Firefox': { | |
| 75 | base: 'BrowserStack', | |
| 76 | browser: 'firefox', | |
| 77 | os: 'Windows', | |
| 78 | os_version: '8' | |
| 79 | }, | |
| 80 | 'BS_IE_8': { | |
| 81 | base: 'BrowserStack', | |
| 82 | browser: 'ie', | |
| 83 | browser_version: '8.0', | |
| 84 | os: 'Windows', | |
| 85 | os_version: '7' | |
| 86 | }, | |
| 87 | 'BS_IE_9': { | |
| 88 | base: 'BrowserStack', | |
| 89 | browser: 'ie', | |
| 90 | browser_version: '9.0', | |
| 91 | os: 'Windows', | |
| 92 | os_version: '7' | |
| 93 | }, | |
| 94 | 'BS_IE_10': { | |
| 95 | base: 'BrowserStack', | |
| 96 | browser: 'ie', | |
| 97 | browser_version: '10.0', | |
| 98 | os: 'Windows', | |
| 99 | os_version: '8' | |
| 100 | }, | |
| 101 | 'BS_IE_11': { | |
| 102 | base: 'BrowserStack', | |
| 103 | browser: 'ie', | |
| 104 | browser_version: '11.0', | |
| 105 | os: 'Windows', | |
| 106 | os_version: '8.1' | |
|
33223e2
vojtajina authored
|
||
| 107 | } | |
| 108 | } | |
|
29f96c8
vojtajina authored
|
||
| 109 | }); | |
|
c64a985
vojtajina authored
|
||
| 110 | ||
| 111 | ||
| 112 | if (process.env.TRAVIS) { | |
|
80d0f98
vojtajina authored
|
||
| 113 | // Debug logging into a file, that we print out at the end of the build. | |
| 114 | config.loggers.push({ | |
| 115 | type: 'file', | |
| 116 | filename: process.env.LOGS_DIR + '/' + (specificOptions.logFile || 'karma.log'), | |
| 117 | level: config.LOG_DEBUG | |
| 118 | }); | |
|
c64a985
vojtajina authored
|
||
| 119 | } | |
|
29f96c8
vojtajina authored
|
||
| 120 | }; |