Skip to content

Commit

Permalink
chore: execute saucelabs-task only if access-key exists
Browse files Browse the repository at this point in the history
- 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.
  • Loading branch information
nknapp committed Jan 13, 2020
1 parent 9d5aa36 commit a4fd391
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ module.exports = function(grunt) {

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

if (process.env.SAUCE_USERNAME) {
if (process.env.SAUCE_ACCESS_KEY) {
grunt.registerTask('sauce', ['concat:tests', 'connect', 'saucelabs-mocha']);
} else {
grunt.registerTask('sauce', []);
Expand Down

0 comments on commit a4fd391

Please sign in to comment.