Created
January 18, 2016 10:59
-
-
Save ghernandez345/77ac0157a08f86847017 to your computer and use it in GitHub Desktop.
executes chrome on travis CI; for browser tests.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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