There is official Angular documentation which explains how to set up an Angular project with Travis CI. However its a bit confusing and includes multiple steps, at least for me. You need to create a new
protractor-ci.conf.js file and alter the contents of the default
karma.conf.js file. Chances are you completely miss this part and ends up with a failed Travis build. If you need a quick start Travis config file that works without altering multiple config files, then this post is for you.
Create a new file
.travis.yml in your root directory. Paste the following.
That’s it! You are done.