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 4848 "@types/minimist" : " ^1.1.28" ,
4949 "@types/node" : " ^6.0.34" ,
5050 "@types/run-sequence" : " 0.0.27" ,
51- "browserstacktunnel-wrapper" : " ^1.4.2 " ,
51+ "browserstacktunnel-wrapper" : " ^2.0.0 " ,
5252 "conventional-changelog" : " ^1.1.0" ,
5353 "express" : " ^4.14.0" ,
5454 "firebase-tools" : " ^2.2.1" ,
Original file line number Diff line number Diff line change @@ -34,7 +34,12 @@ var tunnel = new BrowserStackTunnel({
3434} ) ;
3535
3636console . 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 ) {
3843 if ( error ) {
3944 console . error ( 'Can not establish the tunnel' , error ) ;
4045 } else {
You can’t perform that action at this time.
0 commit comments