-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
96 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
var sauceConfig = { | ||
testName: 'Vue.js unit tests', | ||
recordScreenshots: false, | ||
build: process.env.TRAVIS_JOB_ID || Date.now(), | ||
} | ||
|
||
/** | ||
* Having too many tests running concurrently on saucelabs | ||
* causes timeouts and errors, so we have to run them in | ||
* smaller batches. | ||
*/ | ||
|
||
var batches = [ | ||
// the cool kids | ||
{ | ||
sl_chrome: { | ||
base: 'SauceLabs', | ||
browserName: 'chrome', | ||
platform: 'Windows 7', | ||
version: '37' | ||
}, | ||
sl_firefox: { | ||
base: 'SauceLabs', | ||
browserName: 'firefox', | ||
version: '32' | ||
}, | ||
sl_mac_safari: { | ||
base: 'SauceLabs', | ||
browserName: "safari", | ||
platform: "OS X 10.9", | ||
version: "7" | ||
} | ||
}, | ||
// ie family | ||
{ | ||
sl_ie_9: { | ||
base: 'SauceLabs', | ||
browserName: "internet explorer", | ||
platform: "Windows 7", | ||
version: "9" | ||
}, | ||
sl_ie_10: { | ||
base: 'SauceLabs', | ||
browserName: "internet explorer", | ||
platform: "Windows 8", | ||
version: "10" | ||
}, | ||
sl_ie_11: { | ||
base: 'SauceLabs', | ||
browserName: 'internet explorer', | ||
platform: 'Windows 8.1', | ||
version: '11' | ||
} | ||
}, | ||
// mobile | ||
{ | ||
sl_ios_safari: { | ||
base: 'SauceLabs', | ||
browserName: 'iphone', | ||
platform: 'OS X 10.9', | ||
version: '7.1' | ||
}, | ||
sl_android: { | ||
base: 'SauceLabs', | ||
browserName: 'android', | ||
platform: 'Linux', | ||
version: '4.4' | ||
} | ||
} | ||
] | ||
|
||
for (var i = 0; i < 3; i++) { | ||
exports['batch' + (i+1)] = { | ||
sauceLabs: sauceConfig, | ||
captureTimeout: 600000, | ||
customLaunchers: batches[i], | ||
browsers: Object.keys(batches[i]), | ||
reporters: ['progress', 'saucelabs'] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters