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.
This commit is contained in:
Nils Knappmeier
2020-01-13 21:47:51 +01:00
parent 9d5aa363cf
commit a4fd391ba1
+1 -1
View File
@@ -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', []);