File tree Expand file tree Collapse file tree 3 files changed +31
-40
lines changed Expand file tree Collapse file tree 3 files changed +31
-40
lines changed Original file line number Diff line number Diff line change @@ -11,35 +11,5 @@ notifications:
11
11
irc : " irc.freenode.org#socket.io"
12
12
matrix :
13
13
include :
14
- - node_js : ' 0.10'
15
- env : BROWSER_NAME=chrome BROWSER_VERSION=latest
16
- - node_js : ' 0.10'
17
- env : BROWSER_NAME=safari BROWSER_VERSION=latest
18
- - node_js : ' 0.12'
19
- env : BROWSER_NAME=firefox BROWSER_VERSION=latest BROWSER_PLATFORM="Windows 10"
20
- - node_js : ' 0.10'
21
- env : BROWSER_NAME=ie BROWSER_VERSION=6
22
- - node_js : ' 0.10'
23
- env : BROWSER_NAME=ie BROWSER_VERSION=7
24
- - node_js : ' 0.10'
25
- env : BROWSER_NAME=ie BROWSER_VERSION=8
26
- - node_js : ' 0.10'
27
- env : BROWSER_NAME=ie BROWSER_VERSION=9
28
- - node_js : ' 0.10'
29
- env : BROWSER_NAME=ie BROWSER_VERSION=10 BROWSER_PLATFORM="Windows 2012"
30
- - node_js : ' 0.10'
31
- env : BROWSER_NAME=ie BROWSER_VERSION=latest BROWSER_PLATFORM="Windows 2012"
32
- # - node_js: '0.12'
33
- # env: BROWSER_NAME=microsoftedge BROWSER_VERSION=13 BROWSER_PLATFORM="Windows 10"
34
- - node_js : ' 0.10'
35
- env : BROWSER_NAME=iphone BROWSER_VERSION=8.4
36
- - node_js : ' 0.12'
37
- env : BROWSER_NAME=iphone BROWSER_VERSION=9.2
38
- - node_js : ' 0.10'
39
- env : BROWSER_NAME=android BROWSER_VERSION=4.3
40
- - node_js : ' 0.10'
41
- env : BROWSER_NAME=android BROWSER_VERSION=4.4
42
- - node_js : ' 0.12'
43
- env : BROWSER_NAME=android BROWSER_VERSION=5.1
44
- - node_js : ' 0.12'
45
- env : BROWSER_NAME=android BROWSER_VERSION=latest
14
+ - node_js : ' node'
15
+ env : BROWSERS=1
Original file line number Diff line number Diff line change 45
45
"concat-stream" : " 1.4.6" ,
46
46
"del" : " 2.2.0" ,
47
47
"derequire" : " 1.2.0" ,
48
+ "engine.io" : " 1.8.2" ,
48
49
"eslint-config-standard" : " 4.4.0" ,
49
50
"eslint-plugin-standard" : " 1.3.1" ,
50
- "engine.io" : " 1.8.2" ,
51
51
"expect.js" : " 0.2.0" ,
52
52
"express" : " 3.4.8" ,
53
53
"gulp" : " 3.9.0" ,
58
58
"gulp-task-listing" : " 1.0.1" ,
59
59
"istanbul" : " 0.2.3" ,
60
60
"mocha" : " 1.16.2" ,
61
+ "socket.io-browsers" : " ^1.0.0" ,
61
62
"webpack" : " 1.12.12" ,
62
63
"webpack-stream" : " 3.1.0" ,
63
64
"zuul" : " 3.11.0" ,
Original file line number Diff line number Diff line change
1
+ 'use strict' ;
1
2
2
- module . exports = {
3
+ var browsers = require ( 'socket.io-browsers' ) ;
4
+
5
+ var zuulConfig = module . exports = {
3
6
ui : 'mocha-bdd' ,
4
7
server : './test/support/server.js' ,
5
- tunnel : {
6
- type : 'ngrok' ,
7
- authtoken : '6Aw8vTgcG5EvXdQywVvbh_3fMxvd4Q7dcL2caAHAFjV' ,
8
- proto : 'tcp'
9
- } ,
10
8
builder : 'zuul-builder-webpack' ,
11
- webpack : require ( './support/webpack.config.js' )
9
+ webpack : require ( './support/webpack.config.js' ) ,
10
+
11
+ // test on localhost by default
12
+ local : true ,
13
+
14
+ concurrency : 2 , // ngrok only accepts two tunnels by default
15
+ // if browser does not sends output in 120s since last output:
16
+ // stop testing, something is wrong
17
+ browser_output_timeout : 120 * 1000 ,
18
+ browser_open_timeout : 60 * 4 * 1000 ,
19
+ // we want to be notified something is wrong asap, so no retry
20
+ browser_retries : 1
12
21
} ;
22
+
23
+ if ( process . env . CI === 'true' ) {
24
+ zuulConfig . local = false ;
25
+ zuulConfig . tunnel = {
26
+ type : 'ngrok' ,
27
+ bind_tls : true
28
+ } ;
29
+ }
30
+
31
+ var isPullRequest = process . env . TRAVIS_PULL_REQUEST && process . env . TRAVIS_PULL_REQUEST !== 'false' ;
32
+ zuulConfig . browsers = isPullRequest ? browsers . pullRequest : browsers . all ;
You can’t perform that action at this time.
0 commit comments