File tree Expand file tree Collapse file tree 1 file changed +7
-15
lines changed Expand file tree Collapse file tree 1 file changed +7
-15
lines changed Original file line number Diff line number Diff line change 1
- const webpack = require ( 'webpack' )
2
1
const path = require ( 'path' )
2
+ const webpack = require ( 'webpack' )
3
+ const projectName = require ( './package' ) . name
3
4
4
5
module . exports = config => {
5
6
if ( process . env . RELEASE )
@@ -114,31 +115,22 @@ module.exports = config => {
114
115
if ( process . env . USE_CLOUD ) {
115
116
config . browsers = Object . keys ( customLaunchers )
116
117
config . reporters [ 0 ] = 'dots'
118
+ config . concurrency = 2
119
+
117
120
config . browserDisconnectTimeout = 10000
118
121
config . browserDisconnectTolerance = 3
119
- config . browserNoActivityTimeout = 30000
120
- config . captureTimeout = 120000
121
122
122
123
if ( process . env . TRAVIS ) {
123
- const buildLabel = 'TRAVIS #' + process . env . TRAVIS_BUILD_NUMBER + ' (' + process . env . TRAVIS_BUILD_ID + ')'
124
-
125
124
config . browserStack = {
126
- username : process . env . BROWSER_STACK_USERNAME ,
127
- accessKey : process . env . BROWSER_STACK_ACCESS_KEY ,
128
- pollingTimeout : 10000 ,
129
- startTunnel : true ,
130
- project : 'react-router' ,
131
- build : buildLabel ,
125
+ project : projectName ,
126
+ build : process . env . TRAVIS_BUILD_NUMBER ,
132
127
name : process . env . TRAVIS_JOB_NUMBER
133
128
}
134
129
135
130
config . singleRun = true
136
131
} else {
137
132
config . browserStack = {
138
- username : process . env . BROWSER_STACK_USERNAME ,
139
- accessKey : process . env . BROWSER_STACK_ACCESS_KEY ,
140
- pollingTimeout : 10000 ,
141
- startTunnel : true
133
+ project : projectName
142
134
}
143
135
}
144
136
}
You can’t perform that action at this time.
0 commit comments