Skip to content

Commit 1114b05

Browse files
authored
Do not create job when no credentials (#56)
1 parent dd51dd7 commit 1114b05

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/reporter.js

+4
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,10 @@ module.exports = class TestrunnerReporter {
134134
}
135135

136136
async onRunComplete (test, { testResults, numFailedTests }) {
137+
if (process.env.SAUCE_USERNAME === '' || process.env.SAUCE_ACCESS_KEY === '') {
138+
console.log('Skipping asset uploads! Remember to setup your SAUCE_USERNAME/SAUCE_ACCESS_KEY');
139+
return;
140+
}
137141
endTime = new Date().toISOString();
138142
log.info('Finished testrun!');
139143

0 commit comments

Comments
 (0)