File tree Expand file tree Collapse file tree 4 files changed +53
-32
lines changed Expand file tree Collapse file tree 4 files changed +53
-32
lines changed Original file line number Diff line number Diff line change @@ -4,12 +4,43 @@ node_js:
4
4
- ' 0.10'
5
5
- ' 0.12'
6
6
- ' 4'
7
- - ' node'
7
+ - ' 6'
8
+ - ' 7'
8
9
git :
9
10
depth : 1
10
11
notifications :
11
12
irc : " irc.freenode.org#socket.io"
12
13
matrix :
13
14
include :
14
15
- node_js : ' node'
15
- env : BROWSERS=1
16
+ env : BROWSER_NAME=chrome BROWSER_VERSION=latest
17
+ - node_js : ' node'
18
+ env : BROWSER_NAME=safari BROWSER_VERSION=latest
19
+ - node_js : ' node'
20
+ env : BROWSER_NAME=firefox BROWSER_VERSION=latest
21
+ - node_js : ' node'
22
+ env : BROWSER_NAME=ie BROWSER_VERSION=6
23
+ - node_js : ' node'
24
+ env : BROWSER_NAME=ie BROWSER_VERSION=7
25
+ - node_js : ' node'
26
+ env : BROWSER_NAME=ie BROWSER_VERSION=8
27
+ - node_js : ' node'
28
+ env : BROWSER_NAME=ie BROWSER_VERSION=9
29
+ - node_js : ' node'
30
+ env : BROWSER_NAME=ie BROWSER_VERSION=10
31
+ - node_js : ' node'
32
+ env : BROWSER_NAME=ie BROWSER_VERSION=11
33
+ - node_js : ' node'
34
+ env : BROWSER_NAME=iphone BROWSER_VERSION=8.4
35
+ - node_js : ' node'
36
+ env : BROWSER_NAME=iphone BROWSER_VERSION=9.2
37
+ - node_js : ' node'
38
+ env : BROWSER_NAME=iphone BROWSER_VERSION=10.0
39
+ - node_js : ' node'
40
+ env : BROWSER_NAME=android BROWSER_VERSION=4.4
41
+ - node_js : ' node'
42
+ env : BROWSER_NAME=android BROWSER_VERSION=5.1
43
+ - node_js : ' node'
44
+ env : BROWSER_NAME=ipad BROWSER_VERSION=9.3
45
+ - node_js : ' node'
46
+ env : BROWSER_NAME=ipad BROWSER_VERSION=10.0
Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ const FILES_TO_CLEAN = [
38
38
] ;
39
39
40
40
gulp . task ( 'test' , [ 'lint' ] , function ( ) {
41
- if ( process . env . hasOwnProperty ( 'BROWSERS ' ) ) {
41
+ if ( process . env . hasOwnProperty ( 'BROWSER_NAME ' ) ) {
42
42
return testZuul ( ) ;
43
43
} else {
44
44
return testNode ( ) ;
@@ -78,7 +78,18 @@ function testNode () {
78
78
// runs zuul through shell process
79
79
function testZuul ( ) {
80
80
const ZUUL_CMD = './node_modules/zuul/bin/zuul' ;
81
- const zuulChild = child . spawn ( ZUUL_CMD , [ TEST_FILE ] , { stdio : 'inherit' } ) ;
81
+ const args = [
82
+ '--browser-name' ,
83
+ process . env . BROWSER_NAME ,
84
+ '--browser-version' ,
85
+ process . env . BROWSER_VERSION
86
+ ] ;
87
+ if ( process . env . hasOwnProperty ( 'BROWSER_PLATFORM' ) ) {
88
+ args . push ( '--browser-platform' ) ;
89
+ args . push ( process . env . BROWSER_PLATFORM ) ;
90
+ }
91
+ args . push ( TEST_FILE ) ;
92
+ const zuulChild = child . spawn ( ZUUL_CMD , args , { stdio : 'inherit' } ) ;
82
93
zuulChild . on ( 'exit' , function ( code ) {
83
94
cleanFiles ( FILES_TO_CLEAN ) ;
84
95
process . exit ( code ) ;
Original file line number Diff line number Diff line change 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" ,
62
61
"webpack" : " 1.12.12" ,
63
62
"webpack-stream" : " 3.1.0" ,
64
63
"zuul" : " 3.11.0" ,
Original file line number Diff line number Diff line change 1
- 'use strict' ;
2
1
3
- var browsers = require ( 'socket.io-browsers' ) ;
4
-
5
- var zuulConfig = module . exports = {
2
+ module . exports = {
6
3
ui : 'mocha-bdd' ,
7
4
server : './test/support/server.js' ,
5
+ tunnel : {
6
+ type : 'ngrok' ,
7
+ authtoken : '6Aw8vTgcG5EvXdQywVvbh_3fMxvd4Q7dcL2caAHAFjV' ,
8
+ proto : 'tcp'
9
+ } ,
8
10
builder : 'zuul-builder-webpack' ,
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
11
+ webpack : require ( './support/webpack.config.js' )
21
12
} ;
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