mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
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
This commit is contained in:
parent
2d5ad6d23e
commit
bcbcdd2b2c
@ -13,7 +13,9 @@ module.exports = function( grunt ) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
var fs = require( "fs" ),
|
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" ) ) {
|
if ( !grunt.option( "filename" ) ) {
|
||||||
grunt.option( "filename", "jquery.js" );
|
grunt.option( "filename", "jquery.js" );
|
||||||
@ -190,7 +192,7 @@ module.exports = function( grunt ) {
|
|||||||
singleRun: true
|
singleRun: true
|
||||||
},
|
},
|
||||||
main: {
|
main: {
|
||||||
browsers: [ "ChromeHeadless", "FirefoxHeadless" ]
|
browsers: isTravis && travisBrowsers || [ "ChromeHeadless", "FirefoxHeadless" ]
|
||||||
},
|
},
|
||||||
|
|
||||||
jsdom: {
|
jsdom: {
|
||||||
|
Loading…
Reference in New Issue
Block a user