File tree Expand file tree Collapse file tree 4 files changed +77
-333
lines changed
Expand file tree Collapse file tree 4 files changed +77
-333
lines changed Original file line number Diff line number Diff line change 1+ dist : trusty
2+ addons :
3+ chrome : stable
14language : node_js
25node_js :
36 - stable
@@ -14,7 +17,7 @@ before_install:
1417before_script :
1518 - greenkeeper-lockfile-update
1619script :
17- - node_modules/karma/bin/karma start karma.conf.js --single-run
20+ - yarn test
1821after_script :
1922 - greenkeeper-lockfile-upload
2023after_success :
Original file line number Diff line number Diff line change 1+ const puppeteer = require ( "puppeteer" ) ;
2+
13process . env . TEST = true ;
24process . env . NODE_ENV = "test" ;
5+ process . env . CHROME_BIN = puppeteer . executablePath ( ) ;
36
47const webpackConfig = require ( "./webpack.config.js" ) ( { production : false , karma : true } ) ;
58
@@ -66,11 +69,11 @@ module.exports = config => {
6669 } ;
6770
6871 if ( process . env . TRAVIS ) {
69- configuration . browsers . push ( "PhantomJS " ) ;
70- configuration . plugins . push ( "karma-phantomjs -launcher" ) ;
72+ configuration . browsers . push ( "ChromeHeadless " ) ;
73+ configuration . plugins . push ( "karma-chrome -launcher" ) ;
7174 } else {
72- configuration . browsers . push ( "PhantomJS " ) ;
73- configuration . plugins . push ( "karma-phantomjs -launcher" ) ;
75+ configuration . browsers . push ( "ChromeHeadless " ) ;
76+ configuration . plugins . push ( "karma-chrome -launcher" ) ;
7477 }
7578
7679 config . set ( configuration ) ;
Original file line number Diff line number Diff line change 7575 "karma-es6-shim" : " ^1.0.0" ,
7676 "karma-mocha" : " ^1.3.0" ,
7777 "karma-mocha-reporter" : " ^2.2.5" ,
78- "karma-phantomjs-launcher" : " ^1.0.4" ,
7978 "karma-remap-istanbul" : " ^0.6.0" ,
8079 "karma-sinon" : " ^1.0.5" ,
8180 "karma-sinon-chai" : " ^2.0.2" ,
8685 "phaser-ce" : " ^2.11.1" ,
8786 "prettier" : " ^1.15.2" ,
8887 "publish-please" : " ^5.4.0" ,
88+ "puppeteer" : " ^1.10.0" ,
8989 "reflect-metadata" : " ^0.1.12" ,
9090 "remap-istanbul" : " ^0.12.0" ,
9191 "rimraf" : " ^2.6.2" ,
You can’t perform that action at this time.
0 commit comments