|
1 | 1 | /* eslint-env node */
|
2 | 2 | module.exports = {
|
3 |
| - "framework": "qunit", |
4 |
| - "parallel": 5, |
5 |
| - "disable_watching": true, |
6 |
| - "timeout": 600, |
7 |
| - "browser_start_timeout": 90, |
8 |
| - "test_page": "tests/index.html?hidepassed", |
9 |
| - "on_start": "./sauce_labs/saucie-connect.js", |
10 |
| - "on_exit": "./sauce_labs/saucie-disconnect.js", |
11 |
| - "port": 8080, |
12 |
| - "launchers": { |
13 |
| - "SL_Chrome_Current": { |
14 |
| - "exe": "saucie", |
15 |
| - "args": ["-b", "chrome", "-p", "Windows 10", "-v", "latest", "--no-connect", "-u"], |
16 |
| - "protocol": "tap" |
| 3 | + framework: 'qunit', |
| 4 | + parallel: 5, |
| 5 | + disable_watching: true, |
| 6 | + timeout: 600, |
| 7 | + browser_start_timeout: 90, |
| 8 | + test_page: 'tests/index.html?hidepassed', |
| 9 | + on_start: './sauce_labs/saucie-connect.js', |
| 10 | + on_exit: './sauce_labs/saucie-disconnect.js', |
| 11 | + port: 8080, |
| 12 | + launchers: { |
| 13 | + SL_Chrome_Current: { |
| 14 | + exe: 'saucie', |
| 15 | + args: ['-b', 'chrome', '-p', 'Windows 10', '-v', 'latest', '--no-connect', '-u'], |
| 16 | + protocol: 'tap', |
17 | 17 | },
|
18 |
| - "SL_MS_Edge": { |
19 |
| - "exe": "saucie", |
20 |
| - "args": ["-b", "microsoftedge", "-v", "latest", "--no-connect", "-u"], |
21 |
| - "protocol": "tap" |
| 18 | + SL_MS_Edge: { |
| 19 | + exe: 'saucie', |
| 20 | + args: ['-b', 'microsoftedge', '-v', 'latest', '--no-connect', '-u'], |
| 21 | + protocol: 'tap', |
22 | 22 | },
|
23 |
| - "SL_Safari_Current": { |
24 |
| - "exe": "saucie", |
25 |
| - "args": ["-b", "safari", "-v", "latest", "--no-connect", "-u"], |
26 |
| - "protocol": "tap" |
27 |
| - } |
| 23 | + SL_Safari_Current: { |
| 24 | + exe: 'saucie', |
| 25 | + args: ['-b', 'safari', '-v', 'latest', '--no-connect', '-u'], |
| 26 | + protocol: 'tap', |
| 27 | + }, |
| 28 | + }, |
| 29 | + launch_in_ci: ['Chrome', 'Firefox', ...(process.env.SAUCE_ACCESS_KEY ? ['SL_Safari_Current', 'SL_MS_Edge'] : [])], // eslint-disable-line no-process-env |
| 30 | + browser_args: { |
| 31 | + Chrome: [ |
| 32 | + '--no-sandbox', // Fixes issue starting ChromeHeadless, see https://github.com/travis-ci/travis-ci/issues/9024 |
| 33 | + '--disable-gpu', |
| 34 | + '--headless', |
| 35 | + '--remote-debugging-port=9222', |
| 36 | + '--window-size=1440,900', |
| 37 | + ], |
28 | 38 | },
|
29 |
| - "launch_in_ci": [ |
30 |
| - "Chrome", |
31 |
| - "Firefox", |
32 |
| - "SL_Safari_Current", |
33 |
| - "SL_MS_Edge" |
34 |
| - ], |
35 |
| - "browser_args": { |
36 |
| - "Chrome": [ |
37 |
| - "--no-sandbox", // Fixes issue starting ChromeHeadless, see https://github.com/travis-ci/travis-ci/issues/9024 |
38 |
| - "--disable-gpu", |
39 |
| - "--headless", |
40 |
| - "--remote-debugging-port=9222", |
41 |
| - "--window-size=1440,900" |
42 |
| - ] |
43 |
| - } |
44 |
| -}; |
| 39 | +} |
0 commit comments