socialnetworknews-web

A open-source Paper.li clone
git clone git://archive.git.mtrnord.blog/SocialNetworkNews/socialnetworknews-web.git
Log | Files | Refs | README | LICENSE

commit acea83492a5254977a84d9b6a8ccc6f5bb2fe6ee
parent 51693a3ae5883e086a8ca86b63f5bf1b23f9e811
Author: MTRNord <mtrnord1@gmail.com>
Date:   Sat, 19 May 2018 15:47:15 +0200

Update karma for travis tests

Diffstat:
M.travis.yml | 4----
Mkarma.conf.js | 13+++++++++++++
2 files changed, 13 insertions(+), 4 deletions(-)

diff --git a/.travis.yml b/.travis.yml @@ -11,10 +11,6 @@ node_js: - 7 - 9 -before_install: - - # start your web application and listen on `localhost` - - google-chrome-stable --headless --disable-gpu --remote-debugging-port=9222 http://localhost & - before_script: - npm install --global yarn - yarn global add @angular/cli diff --git a/karma.conf.js b/karma.conf.js @@ -28,6 +28,19 @@ module.exports = function (config) { logLevel: config.LOG_INFO, autoWatch: false, browsers: ['Chrome'], + customLaunchers: { + 'ChromeHeadless': { + base: 'Chrome', + flags: [ + // '--no-sandbox', + // See https://chromium.googlesource.com/chromium/src/+/lkgr/headless/README.md + '--headless', + '--disable-gpu', + // Without a remote debugging port, Google Chrome exits immediately. + '--remote-debugging-port=9222', + ], + } + }, singleRun: true }); };