Skip to content

Commit

Permalink
test: add project and build names to browserstack (#4903)
Browse files Browse the repository at this point in the history
  • Loading branch information
gkatsev authored Jan 26, 2018
1 parent f6eaa5e commit 41fd5cb
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion test/karma.conf.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,14 @@
module.exports = function(config) {
// build out a name for browserstack
// {TRAVIS_BUILD_NUMBER} [{TRAVIS_PULL_REQUEST} {PR_BRANCH}] {TRAVIS_BRANCH}
var browserstackName = process.env.TRAVIS_BUILD_NUMBER;

if (process.env.TRAVIS_PULL_REQUEST !== 'false') {
browserstackName += ' ' + process.env.TRAVIS_PULL_REQUEST + ' ' + process.env.TRAVIS_PULL_REQUEST_BRANCH;
}

browserstackName += ' ' + process.env.TRAVIS_BRANCH;

// Creating settings object first so we can modify based on travis
var settings = {
basePath: '',
Expand Down Expand Up @@ -67,7 +77,9 @@ module.exports = function(config) {
browserDisconnectTolerance: 3,

browserStack: {
name: process.env.TRAVIS_BUILD_NUMBER + process.env.TRAVIS_BRANCH,
project: 'Video.js',
name: browserstackName,
build: browserstackName,
pollingTimeout: 30000,
captureTimeout: 600,
timeout: 600
Expand Down

0 comments on commit 41fd5cb

Please sign in to comment.