Run sauce tests only if credentials are loaded
This commit is contained in:
1 parent
5b9825eff8
commit
611ed749c9
1 file changed
+1
-1
+1
-1
@@ -105,7 +105,7 @@ module.exports = function(config) {
|
||||
configuration.browsers = ['ChromeHeadlessTravis', 'FirefoxHeadless'];
|
||||
}
|
||||
|
||||
if (process.env.SAUCE) {
|
||||
if (process.env.SAUCE && process.env.SAUCE_USERNAME) {
|
||||
var currentBrowsers = configuration.browsers;
|
||||
var sauceBrowsers = Object.keys(customLaunchers).filter((s) => s.startsWith('sl_'));
|
||||
configuration.browsers = currentBrowsers.concat(sauceBrowsers);
|
||||
|
||||
Reference in new issue
Block a user