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

Commitbcbcdd2

Browse files
authored
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 thelist of browsers to pass to Karma.Closesgh-4532
1 parent2d5ad6d commitbcbcdd2

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

‎Gruntfile.js

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

1515
varfs=require("fs"),
16-
gzip=require("gzip-js");
16+
gzip=require("gzip-js"),
17+
isTravis=process.env.TRAVIS,
18+
travisBrowsers=process.env.BROWSERS&&process.env.BROWSERS.split(",");
1719

1820
if(!grunt.option("filename")){
1921
grunt.option("filename","jquery.js");
@@ -190,7 +192,7 @@ module.exports = function( grunt ) {
190192
singleRun:true
191193
},
192194
main:{
193-
browsers:["ChromeHeadless","FirefoxHeadless"]
195+
browsers:isTravis&&travisBrowsers||["ChromeHeadless","FirefoxHeadless"]
194196
},
195197

196198
jsdom:{

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp