Skip to content

Commit a4fd391

Browse files
committed
chore: execute saucelabs-task only if access-key exists
- up to now, the existance of the SAUCE_USERNAME was checked but this variable is even present in pull-requests from other repos. This means that builds fail, because the access key is not there. This change looks for SAUCE_ACCESS_KEY instead, which is a secure variable, only present in build originating from the handlebars.js repo.
1 parent 9d5aa36 commit a4fd391

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Gruntfile.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ module.exports = function(grunt) {
267267

268268
grunt.registerTask('bench', ['metrics']);
269269

270-
if (process.env.SAUCE_USERNAME) {
270+
if (process.env.SAUCE_ACCESS_KEY) {
271271
grunt.registerTask('sauce', ['concat:tests', 'connect', 'saucelabs-mocha']);
272272
} else {
273273
grunt.registerTask('sauce', []);

0 commit comments

Comments
 (0)