Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

travis: make chrome work #30

Closed
nromanetti opened this issue Mar 26, 2017 · 2 comments
Closed

travis: make chrome work #30

nromanetti opened this issue Mar 26, 2017 · 2 comments
Assignees

Comments

@nromanetti
Copy link
Member

we need chrome to start when doing CI with travis

@jeanlouisboudart
Copy link
Contributor

jeanlouisboudart commented Mar 26, 2017

According to the following website, this can be configured in karma.conf.js :
http://blog.500tech.com/setting-up-travis-ci-to-run-tests-on-latest-google-chrome-version/

Add the following in karma.conf.js :

customLaunchers: {  
  Chrome_travis_ci: {
    base: 'Chrome',
    flags: ['--no-sandbox']
  }
}
if (process.env.TRAVIS) {
  config.browsers = ['Firefox', 'Chrome_travis_ci']
  config.singleRun = true
}

Here is a complete example :
https://github.com/MrOrz/SeeSS/blob/master/test/karma.conf.js

@jeanlouisboudart
Copy link
Contributor

The no sandbox option seems to be already generated by angular cli.
I installe chrome and configured travis ci to use it. Builds is now green with karma tests enabled !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants