Skip to content

Commit 8a6ae99

Browse files
authored
Merge pull request #2779 from strongloop/fix/windows-ci
Temporarily disable Karma tests on Windows CI
2 parents 8d0f319 + 0cd157c commit 8a6ae99

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.
@@ -232,7 +236,9 @@ module.exports = function(grunt) {
232236
grunt.registerTask('test', [
233237
'eslint',
234238
process.env.JENKINS_HOME ? 'mochaTest:unit-xml' : 'mochaTest:unit',
235-
'karma:unit-once']);
239+
process.env.JENKINS_HOME && /^win/.test(process.platform) ?
240+
'skip-karma-on-windows' : 'karma:unit-once',
241+
]);
236242

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

0 commit comments

Comments
 (0)