Skip to content

Instantly share code, notes, and snippets.

@ghernandez345
Created January 18, 2016 10:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ghernandez345/77ac0157a08f86847017 to your computer and use it in GitHub Desktop.
Save ghernandez345/77ac0157a08f86847017 to your computer and use it in GitHub Desktop.
executes chrome on travis CI; for browser tests.
// This block is needed to execute Chrome on Travis
// If you ever plan to use Chrome and Travis, you can keep it
// If not, you can safely remove it
// https://github.com/karma-runner/karma/issues/1144#issuecomment-53633076
if(configuration.browsers[0] === 'Chrome' && process.env.TRAVIS) {
configuration.customLaunchers = {
'chrome-travis-ci': {
base: 'Chrome',
flags: ['--no-sandbox']
}
};
configuration.browsers = ['chrome-travis-ci'];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment