Permalink
Browse files

test: add project and build names to browserstack (#4903)

  • Loading branch information...
gkatsev committed Jan 26, 2018
1 parent f6eaa5e commit 41fd5cb4e6d7df627a35394eb395b1c2e0f657d9
Showing with 13 additions and 1 deletion.
  1. +13 −1 test/karma.conf.js
@@ -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: '',
@@ -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

0 comments on commit 41fd5cb

Please sign in to comment.