Skip to content

Commit

Permalink
Trying to fix TravisCI issue with starting up chrome
Browse files Browse the repository at this point in the history
  • Loading branch information
saschascherrer committed Apr 12, 2018
1 parent 108495d commit 16ac660
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
process.env.CHROME_BIN = require('puppeteer').executablePath();

module.exports = function(config) {
config.set({
let configuration = {
basePath: '',
frameworks: ['jasmine', '@angular/cli'],
plugins: [
Expand Down Expand Up @@ -39,6 +39,18 @@ module.exports = function(config) {
logLevel: config.LOG_INFO,
autoWatch: true,
browsers: ['ChromeHeadless'],
customLaunchers: {
Chrome_travis_ci: {
base: 'ChromeHeadless',
flags: ['--no-sandbox']
}
},
singleRun: false
});
};

if(process.env.TRAVIS){
configuration.browsers = ['Chrome_travis_ci'];
}

config.set(configuration);
};

0 comments on commit 16ac660

Please sign in to comment.