File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change 1
1
module . exports = function ( config ) {
2
+ // build out a name for browserstack
3
+ // {TRAVIS_BUILD_NUMBER} [{TRAVIS_PULL_REQUEST} {PR_BRANCH}] {TRAVIS_BRANCH}
4
+ var browserstackName = process . env . TRAVIS_BUILD_NUMBER ;
5
+
6
+ if ( process . env . TRAVIS_PULL_REQUEST !== 'false' ) {
7
+ browserstackName += ' ' + process . env . TRAVIS_PULL_REQUEST + ' ' + process . env . TRAVIS_PULL_REQUEST_BRANCH ;
8
+ }
9
+
10
+ browserstackName += ' ' + process . env . TRAVIS_BRANCH ;
11
+
2
12
// Creating settings object first so we can modify based on travis
3
13
var settings = {
4
14
basePath : '' ,
@@ -67,7 +77,9 @@ module.exports = function(config) {
67
77
browserDisconnectTolerance : 3 ,
68
78
69
79
browserStack : {
70
- name : process . env . TRAVIS_BUILD_NUMBER + process . env . TRAVIS_BRANCH ,
80
+ project : 'Video.js' ,
81
+ name : browserstackName ,
82
+ build : browserstackName ,
71
83
pollingTimeout : 30000 ,
72
84
captureTimeout : 600 ,
73
85
timeout : 600
You can’t perform that action at this time.
0 commit comments