diff --git a/Gruntfile.js b/Gruntfile.js index 7ef9f0d8..579c7ea4 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -224,6 +224,10 @@ module.exports = function(grunt) { }); }); + grunt.registerTask('skip-karma-on-windows', function() { + console.log('*** SKIPPING PHANTOM-JS BASED TESTS ON WINDOWS ***'); + }); + grunt.registerTask('e2e', ['e2e-server', 'karma:e2e']); // Default task. @@ -232,7 +236,9 @@ module.exports = function(grunt) { grunt.registerTask('test', [ 'eslint', process.env.JENKINS_HOME ? 'mochaTest:unit-xml' : 'mochaTest:unit', - 'karma:unit-once']); + process.env.JENKINS_HOME && /^win/.test(process.platform) ? + 'skip-karma-on-windows' : 'karma:unit-once', + ]); // alias for sl-ci-run and `npm test` grunt.registerTask('mocha-and-karma', ['test']);