Gruntfile: disable debug & watch for CI builds

This fixes the following error on io.js:

Fatal error: Maximum call stack size exceeded
RangeError: Maximum call stack size exceeded
    at String.match (native)
    at Object.exports.fromSource (node_modules/karma-browserify/node_modules/convert-source-map/index.js:109:19)
    at updateSourceMap (node_modules/karma-browserify/lib/bro.js:326:23)
    at Browserify.<anonymous> (node_modules/karma-browserify/lib/bro.js:351:9)
    at Browserify.g (events.js:257:16)
    at emitTwo (events.js:92:20)
    at Browserify.emit (events.js:169:7)
    at node_modules/karma-browserify/lib/bro.js:263:11
    at node_modules/browserify/index.js:758:13
    at ConcatStream.<anonymous> (node_modules/browserify/node_modules/concat-stream/index.js:36:43)
This commit is contained in:
Miroslav Bajtoš 2015-05-04 18:30:01 +02:00
parent 3435fc959a
commit 581df35d22
1 changed files with 8 additions and 0 deletions

View File

@ -111,6 +111,14 @@ module.exports = function(grunt) {
junitReporter: {
outputFile: 'karma-xunit.xml'
},
browserify: {
// Disable sourcemaps to prevent
// Fatal error: Maximum call stack size exceeded
debug: false,
// Disable watcher, grunt will exit after the first run
watch: false
}
},
unit: {
configFile: 'test/karma.conf.js',