From 0dac936bba556a4efca2c629c849abf3a4dfca26 Mon Sep 17 00:00:00 2001 From: Thomas Leah Date: Wed, 8 Aug 2018 11:45:58 +0100 Subject: [PATCH] add: ppc64 and s390x to not run UI tests --- Gruntfile.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Gruntfile.js b/Gruntfile.js index ea547095..813dfa19 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -226,8 +226,9 @@ module.exports = function(grunt) { }); }); - grunt.registerTask('skip-karma-on-windows', function() { - console.log('*** SKIPPING PHANTOM-JS BASED TESTS ON WINDOWS ***'); + grunt.registerTask('skip-karma', function() { + console.log(`*** SKIPPING PHANTOM-JS BASED TESTS ON ${process.platform}` + + ` ${process.arch} ***`); }); grunt.registerTask('e2e', ['e2e-server', 'karma:e2e']); @@ -238,8 +239,9 @@ module.exports = function(grunt) { grunt.registerTask('test', [ 'eslint', process.env.JENKINS_HOME ? 'mochaTest:unit-xml' : 'mochaTest:unit', - process.env.JENKINS_HOME && /^win/.test(process.platform) ? - 'skip-karma-on-windows' : 'karma:unit-once', + process.env.JENKINS_HOME && (/^win/.test(process.platform) || + /^s390x/.test(process.arch) || /^ppc64/.test(process.arch)) ? + 'skip-karma' : 'karma:unit-once', ]); // alias for sl-ci-run and `npm test`