From 8901c28e9a13204f0d392834c9b93d20c69ae722 Mon Sep 17 00:00:00 2001 From: Nils Knappmeier Date: Tue, 3 Dec 2019 22:59:04 +0100 Subject: [PATCH] chore: fix task name in build --- Gruntfile.js | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/Gruntfile.js b/Gruntfile.js index 9cf025960..6e32e162d 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -264,10 +264,13 @@ module.exports = function(grunt) { this.registerTask('amd', ['babel:amd', 'requirejs']); grunt.registerTask('bench', ['metrics']); - grunt.registerTask( - 'sauce', - process.env.SAUCE_USERNAME ? ['tests', 'connect', 'saucelabs-mocha'] : [] - ); + + if (process.env.SAUCE_USERNAME) { + grunt.registerTask('sauce', ['concat:tests', 'connect', 'saucelabs-mocha']); + } else { + grunt.registerTask('sauce', []); + } + // Requires secret properties (saucelabs-credentials etc.) from .travis.yaml grunt.registerTask('extensive-tests-and-publish-to-aws', [ 'default',