Skip to content

Commit 584835e

Browse files
authored
Build: Run tests on Travis on FirefoxHeadless as well
Also, run them on both ChromeHeadless & FirefoxHeadless locally on `grunt karma:main`. Plus, so far, the chrome addons were installed for all the jobs, even the ones that weren't used for browser testing. Changing that makes those jobs faster. Closes gh-4524
1 parent 15750b0 commit 584835e

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

.travis.yml

+7-4
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,17 @@ node_js:
44
- "8"
55
- "10"
66
- "12"
7-
addons:
8-
chrome: stable
97
env:
108
- NPM_SCRIPT=test:browserless
119
matrix:
1210
include:
1311
# Run browser tests only on one Node.js version to save time.
14-
- node_js: "10"
15-
env: NPM_SCRIPT=test:browser
12+
- node_js: "12"
13+
env:
14+
- NPM_SCRIPT="test:browser"
15+
- BROWSERS="ChromeHeadless,FirefoxHeadless"
16+
addons:
17+
chrome: stable
18+
firefox: latest
1619
script:
1720
- npm run $NPM_SCRIPT

Gruntfile.js

+2-5
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@ module.exports = function( grunt ) {
1313
}
1414

1515
var fs = require( "fs" ),
16-
gzip = require( "gzip-js" ),
17-
isTravis = process.env.TRAVIS;
16+
gzip = require( "gzip-js" );
1817

1918
if ( !grunt.option( "filename" ) ) {
2019
grunt.option( "filename", "jquery.js" );
@@ -191,9 +190,7 @@ module.exports = function( grunt ) {
191190
singleRun: true
192191
},
193192
main: {
194-
195-
// The Chrome sandbox doesn't work on Travis.
196-
browsers: [ isTravis ? "ChromeHeadlessNoSandbox" : "ChromeHeadless" ]
193+
browsers: [ "ChromeHeadless", "FirefoxHeadless" ]
197194
},
198195

199196
jsdom: {

0 commit comments

Comments
 (0)