Skip to content

Commit

Permalink
Move to chrome headless for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanseddon committed Oct 9, 2017
1 parent b56da27 commit e6ea9a2
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .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:
Expand Down
13 changes: 12 additions & 1 deletion karma.conf.js
Expand Up @@ -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'
]
}
}
});
};

0 comments on commit e6ea9a2

Please sign in to comment.