File tree Expand file tree Collapse file tree 4 files changed +8
-24
lines changed
Expand file tree Collapse file tree 4 files changed +8
-24
lines changed Original file line number Diff line number Diff line change 11sudo : required
22dist : trusty
33addons :
4- apt :
5- sources :
6- - google-chrome
7- packages :
8- - google-chrome-stable
4+ - chrome : stable
95
106language : node_js
117
@@ -24,14 +20,7 @@ before_install:
2420install :
2521 - travis_retry yarn install
2622
27- before_script :
28- - travis_wait yarn run lint
29- - travis_wait yarn run build
30- - export CHROME_BIN=chromium-browser
31- - export DISPLAY=:99.0
32- - sh -e /etc/init.d/xvfb start
33- - sleep 3
34-
3523script :
24+ - yarn run build
3625 - yarn run ci
3726 - cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js
Original file line number Diff line number Diff line change @@ -146,11 +146,6 @@ module.exports = function (config) {
146146 ] ,
147147
148148 customLaunchers : {
149- // Continuous integraation with Chrome - launcher
150- 'ChromeTravisCi' : {
151- base : 'Chrome' ,
152- flags : [ '--no-sandbox' ]
153- } ,
154149 // Remote Selenium Server with Chrome - launcher
155150 'SeleniumChrome' : {
156151 base : 'WebDriver' ,
@@ -173,9 +168,5 @@ module.exports = function (config) {
173168
174169 } ;
175170
176- if ( process . env . TRAVIS ) {
177- configuration . browsers = [ 'ChromeTravisCi' ] ;
178- }
179-
180171 config . set ( configuration ) ;
181172} ;
Original file line number Diff line number Diff line change 5555 "debug:server" : " node-nightly --inspect --debug-brk dist/server.js" ,
5656 "debug:build" : " node-nightly --inspect --debug-brk node_modules/webpack/bin/webpack.js" ,
5757 "debug:build:prod" : " node-nightly --inspect --debug-brk node_modules/webpack/bin/webpack.js --env.aot --env.client --env.server -p" ,
58- "ci" : " yarn run lint && yarn run build:aot && yarn run test && npm-run-all -p -r server e2e" ,
58+ "ci" : " yarn run lint && yarn run build:aot && yarn run test:headless && npm-run-all -p -r server e2e" ,
5959 "protractor" : " node node_modules/protractor/bin/protractor" ,
6060 "pree2e" : " yarn run webdriver:update" ,
6161 "e2e" : " yarn run protractor" ,
6262 "test" : " karma start --single-run" ,
63+ "test:headless" : " karma start --single-run --browsers ChromeHeadless" ,
6364 "test:watch" : " karma start --no-single-run --auto-watch" ,
6465 "webdriver:start" : " node node_modules/protractor/bin/webdriver-manager start --seleniumPort 4444" ,
6566 "webdriver:update" : " node node_modules/protractor/bin/webdriver-manager update --standalone" ,
Original file line number Diff line number Diff line change @@ -31,7 +31,10 @@ exports.config = {
3131 capabilities : {
3232 'browserName' : 'chrome' ,
3333 'version' : '' ,
34- 'platform' : 'ANY'
34+ 'platform' : 'ANY' ,
35+ 'chromeOptions' : {
36+ 'args' : [ '--headless' , '--disable-gpu' ]
37+ }
3538 } ,
3639 // -----------------------------------------------------------------
3740 // Browser and Capabilities: Firefox
You can’t perform that action at this time.
0 commit comments