File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 48
48
"@types/minimist" : " ^1.1.28" ,
49
49
"@types/node" : " ^6.0.34" ,
50
50
"@types/run-sequence" : " 0.0.27" ,
51
- "browserstacktunnel-wrapper" : " ^1.4.2 " ,
51
+ "browserstacktunnel-wrapper" : " ^2.0.0 " ,
52
52
"conventional-changelog" : " ^1.1.0" ,
53
53
"express" : " ^4.14.0" ,
54
54
"firebase-tools" : " ^2.2.1" ,
Original file line number Diff line number Diff line change @@ -34,7 +34,12 @@ var tunnel = new BrowserStackTunnel({
34
34
} ) ;
35
35
36
36
console . log ( 'Starting tunnel on ports' , PORTS . join ( ', ' ) ) ;
37
- tunnel . start ( function ( error ) {
37
+
38
+ // Emit a `newer_available` event to force an update of the Browserstack binaries (necessary due to Travis caching)
39
+ // This also starts a new tunnel after the latest binaries are available.
40
+ tunnel . emit ( 'newer_available' ) ;
41
+
42
+ tunnel . once ( 'started' , function ( error ) {
38
43
if ( error ) {
39
44
console . error ( 'Can not establish the tunnel' , error ) ;
40
45
} else {
You can’t perform that action at this time.
0 commit comments