Skip to content

Commit bec1519

Browse files
devversionjelbourn
authored andcommitted
chore(ci): ensure browserstack binaries are latest (#1724)
1 parent f0b9a77 commit bec1519

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
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",

scripts/browserstack/start_tunnel.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,12 @@ var tunnel = new BrowserStackTunnel({
3434
});
3535

3636
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) {
3843
if (error) {
3944
console.error('Can not establish the tunnel', error);
4045
} else {

0 commit comments

Comments
 (0)