Skip to content

Commit 381ef1a

Browse files
fixing CI failures
1 parent 1c2ea10 commit 381ef1a

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

karma.conf.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,10 +101,11 @@ function configureLocalBrowsers (config) {
101101
* https://github.com/karma-runner/karma-sauce-launcher
102102
*/
103103
function configureSauceLabs (config) {
104+
var SAUCE = process.env.SAUCE === 'true';
104105
var username = process.env.SAUCE_USERNAME;
105106
var accessKey = process.env.SAUCE_ACCESS_KEY;
106107

107-
if (!username || !accessKey) {
108+
if (!SAUCE || !username || !accessKey) {
108109
console.warn('SauceLabs is not enabled');
109110
return;
110111
}

0 commit comments

Comments
 (0)