Skip to content

Commit 5ee43fe

Browse files
authored
Merge pull request #2783 from strongloop/fix/windows-ci-2x
Temporarily disable Karma tests on Windows CI
2 parents f3317ec + 6ac1f69 commit 5ee43fe

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

Gruntfile.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,10 @@ module.exports = function(grunt) {
224224
});
225225
});
226226

227+
grunt.registerTask('skip-karma-on-windows', function() {
228+
console.log('*** SKIPPING PHANTOM-JS BASED TESTS ON WINDOWS ***');
229+
});
230+
227231
grunt.registerTask('e2e', ['e2e-server', 'karma:e2e']);
228232

229233
// Default task.
@@ -233,7 +237,9 @@ module.exports = function(grunt) {
233237
'jscs',
234238
'jshint',
235239
process.env.JENKINS_HOME ? 'mochaTest:unit-xml' : 'mochaTest:unit',
236-
'karma:unit-once']);
240+
process.env.JENKINS_HOME && /^win/.test(process.platform) ?
241+
'skip-karma-on-windows' : 'karma:unit-once',
242+
]);
237243

238244
// alias for sl-ci-run and `npm test`
239245
grunt.registerTask('mocha-and-karma', ['test']);

0 commit comments

Comments
 (0)