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
+1 -1
View File
@@ -48,7 +48,7 @@
"@types/minimist": "^1.1.28",
"@types/node": "^6.0.34",
"@types/run-sequence": "0.0.27",
"browserstacktunnel-wrapper": "^1.4.2",
"browserstacktunnel-wrapper": "^2.0.0",
"conventional-changelog": "^1.1.0",
"express": "^4.14.0",
"firebase-tools": "^2.2.1",
+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 {