}
var fs = require( "fs" ),
- gzip = require( "gzip-js" );
+ gzip = require( "gzip-js" ),
+ isTravis = process.env.TRAVIS;
if ( !grunt.option( "filename" ) ) {
grunt.option( "filename", "jquery.js" );
options: {
customContextFile: "test/karma.context.html",
customDebugFile: "test/karma.debug.html",
+ customLaunchers: {
+ ChromeHeadlessNoSandbox: {
+ base: "ChromeHeadless",
+ flags: [ "--no-sandbox" ]
+ }
+ },
frameworks: [ "qunit" ],
middleware: [ "mockserver" ],
plugins: [
singleRun: true
},
main: {
- browsers: [ "ChromeHeadless" ]
+
+ // The Chrome sandbox doesn't work on Travis.
+ browsers: [ isTravis ? "ChromeHeadlessNoSandbox" : "ChromeHeadless" ]
},
// To debug tests with Karma: