mirror of
https://github.com/videojs/video.js.git
synced 2024-12-25 02:42:10 +02:00
test: add project and build names to browserstack (#4903)
This commit is contained in:
parent
f6eaa5e2ae
commit
41fd5cb4e6
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user