Skip to content

Commit 338f949

Browse files
committed
chore(travis): set SauceLabs build id
1 parent d0192b3 commit 338f949

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

karma-shared.conf.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,9 +118,12 @@ module.exports = function(config, specificOptions) {
118118

119119

120120
if (process.env.TRAVIS) {
121+
var buildLabel = 'TRAVIS #' + process.env.TRAVIS_BUILD_NUMBER + ' (' + process.env.TRAVIS_BUILD_ID + ')';
122+
121123
config.logLevel = config.LOG_DEBUG;
122124
config.transports = ['websocket', 'xhr-polling'];
123-
config.browserStack.build = 'TRAVIS #' + process.env.TRAVIS_BUILD_NUMBER + ' (' + process.env.TRAVIS_BUILD_ID + ')';
125+
config.browserStack.build = buildLabel;
126+
config.sauceLabs.build = buildLabel;
124127

125128
// TODO(vojta): remove once SauceLabs supports websockets.
126129
// This speeds up the capturing a bit, as browsers don't even try to use websocket.

0 commit comments

Comments
 (0)