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

Setup Travis CI #1

Merged
merged 5 commits into from
Mar 4, 2018
Merged

Setup Travis CI #1

merged 5 commits into from
Mar 4, 2018

Conversation

julie-ng
Copy link
Owner

@julie-ng julie-ng commented Mar 4, 2018

Travis CI offers simple continuous integration with GitHub projects.

Stages

Using Travis, with each push we want to:

  • run unit tests
  • lint code
  • generate build
  • run e2e tests

Configuration

Angular

  • Configure Karma to use headless Chrome for testing
  • Add npm script npm run test:headless for this
  • Disable sandboxing in the protractor config

Travis

  • Use the Linux Trusty build
  • Disable sudo to containerize builds
  • Enable the Chrome Addon
  • Use xvfb-run wrapper to run e2e tests

Not necessary

If you scour the internet, you will find texts about installing angular globally, adding chrome and xvfb with apt-get, running xvfb directly from /etc/init.d/, setting chrome location in the environment variable and more. Just DON'T.

Travis did the hard work for you.

Resources

@julie-ng julie-ng merged commit be6ecc2 into master Mar 4, 2018
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

Successfully merging this pull request may close these issues.

1 participant