From e6ea9a29ba5cd81668774dc154a6862c1b03c218 Mon Sep 17 00:00:00 2001 From: Ryan Seddon Date: Mon, 9 Oct 2017 21:17:24 +1100 Subject: [PATCH] Move to chrome headless for testing --- .travis.yml | 5 +++++ karma.conf.js | 13 ++++++++++++- 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index d23b9b2..b0b7c83 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,3 +1,8 @@ +dist: trusty +addons: + chrome: stable +before_install: + - google-chrome-stable --headless --disable-gpu --remote-debugging-port=9222 http://localhost & cache: yarn: true directories: diff --git a/karma.conf.js b/karma.conf.js index 3840ba9..7a01694 100644 --- a/karma.conf.js +++ b/karma.conf.js @@ -30,6 +30,17 @@ module.exports = function configure(config) { colors: true, logLevel: config.LOG_INFO, autoWatch: false, - browsers: ['PhantomJS2'] + browsers: ['ChromeHeadlessNoSandbox'], + customLaunchers: { + ChromeHeadlessNoSandbox: { + base: 'Chrome', + flags: [ + '--no-sandbox', + '--headless', + '--disable-gpu', + '--remote-debugging-port=9222' + ] + } + } }); };