Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit584835e

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, eventhe ones that weren't used for browser testing. Changing that makesthose jobs faster.Closesgh-4524
1 parent15750b0 commit584835e

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

‎.travis.yml

Lines changed: 7 additions & 4 deletions
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

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

1515
varfs=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)

[8]ページ先頭

©2009-2025 Movatter.jp