File tree Expand file tree Collapse file tree 2 files changed +19
-5
lines changed
Expand file tree Collapse file tree 2 files changed +19
-5
lines changed Original file line number Diff line number Diff line change 33 - 5.0
44 - 6.0
55 - 7.0
6- script : node_modules/karma/bin/karma start ./karma.conf.js --browsers ["Chrome"]
6+ script : node_modules/karma/bin/karma start ./karma.conf.js --singleRun
77before_install :
88 - export CHROME_BIN=chromium-browser
99 - export DISPLAY=:99.0
Original file line number Diff line number Diff line change 11var path = require ( 'path' ) ;
22
3+ let browsers = [ 'Chrome' ] ;
4+ // trvis env
5+
6+ if ( process . env . TRAVIS ) {
7+ browsers = [ 'Chrome_travis_ci' ] ;
8+ }
9+
10+
311module . exports = function ( config ) {
412 config . set ( {
513 basePath : '' ,
@@ -49,18 +57,24 @@ module.exports = function(config) {
4957 'karma-sourcemap-loader' ,
5058 'karma-chrome-launcher' ,
5159 ] ,
52-
53-
60+
5461 babelPreprocessor : {
5562 options : {
5663 presets : [ 'airbnb' ]
5764 }
5865 } ,
5966 reporters : [ 'progress' ] ,
67+ // custom launchers
68+ customLaunchers : {
69+ Chrome_travis_ci : {
70+ base : 'Chrome' ,
71+ flags : [ '--no-sandbox' ]
72+ }
73+ } ,
6074 // port: 9002,
6175 logLevel : config . LOG_INFO ,
62- browsers : [ 'Chrome' ] ,
63- singleRun : false ,
76+ browsers : browsers ,
77+ singleRun : false
6478 } )
6579
6680} ;
You can’t perform that action at this time.
0 commit comments