File tree 2 files changed +9
-2
lines changed
2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ if (process.env.TRAVIS) {
51
51
config . sauceUser = process . env . SAUCE_USERNAME ;
52
52
config . sauceKey = process . env . SAUCE_ACCESS_KEY ;
53
53
config . capabilities = {
54
- 'name' : 'react-es6-redux E2E' ,
54
+ 'name' : 'react-es6-redux E2E node v' + process . env . TRAVIS_NODE_VERSION ,
55
55
'browserName' : 'chrome' ,
56
56
'seleniumVersion' : '2.48.2' ,
57
57
'chromedriverVersion' : '2.20' ,
Original file line number Diff line number Diff line change @@ -19,9 +19,13 @@ const NODE_ENV = process.env.NODE_ENV ? process.env.NODE_ENV.toLowerCase() : 'de
19
19
const DEVTOOLS = process . env . DEVTOOLS ? JSON . parse ( process . env . DEVTOOLS ) : false ;
20
20
const API_ROOT_URL = process . env . API_ROOT_URL ? process . env . API_ROOT_URL : 'https://api.github.com' ;
21
21
const DISABLE_LINTER = process . env . DISABLE_LINTER ? JSON . parse ( process . env . DISABLE_LINTER ) : false ;
22
+ const TRAVIS = process . env . TRAVIS ? JSON . parse ( process . env . TRAVIS ) : false ;
22
23
23
24
const SOURCEMAPS_ACTIVE = NODE_ENV !== 'production' || DEVTOOLS === true ;
24
25
26
+ if ( TRAVIS ) {
27
+ console . log ( 'TRAVIS mode (will fail on error)' ) ;
28
+ }
25
29
if ( NODE_ENV === 'production' ) {
26
30
console . log ( 'PRODUCTION mode' ) ;
27
31
}
@@ -50,7 +54,9 @@ const hash = (NODE_ENV === 'production' && DEVTOOLS ? '-devtools' : '') + (NODE_
50
54
51
55
/** plugins setup */
52
56
53
- plugins . push ( new webpack . NoErrorsPlugin ( ) ) ;
57
+ if ( ! TRAVIS ) {
58
+ plugins . push ( new webpack . NoErrorsPlugin ( ) ) ;
59
+ }
54
60
// extract css into one main.css file
55
61
plugins . push ( new ExtractTextPlugin ( 'css/main' + hash + '.css' , {
56
62
disable : false ,
@@ -130,6 +136,7 @@ else if(MODE_DEV_SERVER === false && DEVTOOLS === true){
130
136
/** webpack config */
131
137
132
138
var config = {
139
+ bail : TRAVIS ,
133
140
entry : {
134
141
"js/bundle" : "./src/bootstrap.js" ,
135
142
"css/main" : "./src/style/main.scss"
You can’t perform that action at this time.
0 commit comments