add missing headless chrome setup for Travis (#2807)

This commit is contained in:
Denys Vuika 2018-01-09 10:33:52 +00:00 committed by Eugenio Romano
parent 58166d36f3
commit 1d0670a826
2 changed files with 12 additions and 2 deletions

View File

@ -85,7 +85,5 @@ after_success:
cache:
directories:
- ./node_modules/material-design-lite
- ./node_modules/material-design-icons
- demo-shell/node_modules
- lib/node_modules

View File

@ -76,6 +76,18 @@ module.exports = function (config) {
browsers: ['Chrome'],
customLaunchers: {
ChromeHeadless: {
base: 'Chrome',
flags: [
'--no-sandbox',
'--headless',
'--disable-gpu',
'--remote-debugging-port=9222'
]
}
},
// Karma plugins loaded
plugins: [
require('../node_modules/karma-jasmine'),