Skip to content
Permalink
Browse files
Build: Run tests on Travis only on browsers defined in the config
The environmental variable BROWSERS was being created but it wasn't read in the
list of browsers to pass to Karma.

Closes gh-4532

(cherry picked from commit bcbcdd2)
  • Loading branch information
mgol committed Oct 22, 2019
1 parent 0a73b94 commit 471b004326bec0ee9ed8dd9ca1d3d58510d280f3
Showing 1 changed file with 4 additions and 2 deletions.
@@ -13,7 +13,9 @@ module.exports = function( grunt ) {
}

var fs = require( "fs" ),
gzip = require( "gzip-js" );
gzip = require( "gzip-js" ),
isTravis = process.env.TRAVIS,
travisBrowsers = process.env.BROWSERS && process.env.BROWSERS.split( "," );

if ( !grunt.option( "filename" ) ) {
grunt.option( "filename", "jquery.js" );
@@ -214,7 +216,7 @@ module.exports = function( grunt ) {
singleRun: true
},
main: {
browsers: [ "ChromeHeadless", "FirefoxHeadless" ]
browsers: isTravis && travisBrowsers || [ "ChromeHeadless", "FirefoxHeadless" ]
},

jsdom: {

0 comments on commit 471b004

Please sign in to comment.