diff --git a/.travis.yml b/.travis.yml index 10cef4a65..97d54454f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,14 +4,17 @@ node_js: - "8" - "10" - "12" -addons: - chrome: stable env: - NPM_SCRIPT=test:browserless matrix: include: # Run browser tests only on one Node.js version to save time. - - node_js: "10" - env: NPM_SCRIPT=test:browser + - node_js: "12" + env: + - NPM_SCRIPT="test:browser" + - BROWSERS="ChromeHeadless,FirefoxHeadless" + addons: + chrome: stable + firefox: latest script: - npm run $NPM_SCRIPT diff --git a/Gruntfile.js b/Gruntfile.js index e740690af..7f21bf613 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -13,8 +13,7 @@ module.exports = function( grunt ) { } var fs = require( "fs" ), - gzip = require( "gzip-js" ), - isTravis = process.env.TRAVIS; + gzip = require( "gzip-js" ); if ( !grunt.option( "filename" ) ) { grunt.option( "filename", "jquery.js" ); @@ -191,9 +190,7 @@ module.exports = function( grunt ) { singleRun: true }, main: { - - // The Chrome sandbox doesn't work on Travis. - browsers: [ isTravis ? "ChromeHeadlessNoSandbox" : "ChromeHeadless" ] + browsers: [ "ChromeHeadless", "FirefoxHeadless" ] }, jsdom: {