-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Run P3 tests in all browsers. Bump node to 8.11
- Loading branch information
1 parent
2bd3863
commit bd0dffb
Showing
2 changed files
with
23 additions
and
21 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
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 |
---|---|---|
|
@@ -2,37 +2,40 @@ var envIndex = process.argv.indexOf('--env') + 1; | |
var env = envIndex ? process.argv[envIndex] : undefined; | ||
|
||
module.exports = { | ||
testTimeout: 180 * 1000, | ||
verbose: true, | ||
registerHooks: function(context) { | ||
var saucelabsPlatforms = [ | ||
'Windows 10/chrome@65', | ||
'Windows 10/firefox@59', | ||
const saucelabsPlatformsMobile = [ | ||
'macOS 10.12/[email protected]', | ||
'macOS 10.12/[email protected]', | ||
'Windows 10/microsoftedge@15', | ||
'Windows 10/internet explorer@11', | ||
'macOS 10.12/[email protected]', | ||
'macOS 10.12/[email protected]', | ||
'macOS 9.3.2/[email protected]' | ||
]; | ||
|
||
var saucelabsPlatformsP3 = [ | ||
'macOS 10.12/[email protected]', | ||
'macOS 10.12/[email protected]', | ||
const saucelabsPlatformsMicrosoft = [ | ||
'Windows 10/microsoftedge@16', | ||
'Windows 10/internet explorer@11' | ||
]; | ||
|
||
const saucelabsPlatformsDesktop = [ | ||
'Windows 10/chrome@65', | ||
'macOS 10.12/[email protected]', | ||
'Windows 10/firefox@59', | ||
'Windows 10/microsoftedge@16' | ||
'macOS 10.12/[email protected]' | ||
]; | ||
|
||
const saucelabsPlatforms = [ | ||
...saucelabsPlatformsMobile, | ||
...saucelabsPlatformsMicrosoft, | ||
...saucelabsPlatformsDesktop | ||
]; | ||
|
||
var cronPlatforms = [ | ||
const cronPlatforms = [ | ||
'Android/chrome', | ||
'Windows 10/chrome@65', | ||
'Windows 10/firefox@59' | ||
]; | ||
|
||
if (env === 'saucelabs') { | ||
context.options.plugins.sauce.browsers = saucelabsPlatforms; | ||
} else if (env === 'saucelabs-p3') { | ||
context.options.plugins.sauce.browsers = saucelabsPlatformsP3; | ||
} else if (env === 'saucelabs-cron') { | ||
context.options.plugins.sauce.browsers = cronPlatforms; | ||
} | ||
|