chore(ci): ensure browserstack binaries are latest (#1724)

This commit is contained in:
Paul Gschwendtner
2016-11-08 21:29:25 +01:00
committed by Jeremy Elbourn
parent f0b9a7758f
commit bec15195b9
2 changed files with 7 additions and 2 deletions
+6 -1
View File
@@ -34,7 +34,12 @@ var tunnel = new BrowserStackTunnel({
});
console.log('Starting tunnel on ports', PORTS.join(', '));
tunnel.start(function(error) {
// Emit a `newer_available` event to force an update of the Browserstack binaries (necessary due to Travis caching)
// This also starts a new tunnel after the latest binaries are available.
tunnel.emit('newer_available');
tunnel.once('started', function(error) {
if (error) {
console.error('Can not establish the tunnel', error);
} else {