Continuous integration (CI) is a development practice where developers need to integrate code into a shared repository. It is run in the automated build process with a test when any change happens in the codebase. This detects the error early, before it is pushed to production. There are lot of CI services around, including Travis CI, Jenkin CI, Circle CI, and so on.
In this section, we will see how we can integrate Karma with Travis.
Travis CI is a popular hosted continuous integration platform that integrates with the GitHub project/repository to automatically run the test with every change in the code base of any branch or even with a pull request. It's easy to get the integration system just by putting a .travis.yml
file in the project root with some configuration information about the project.
So, we may ask, why Travis? There are a few other CI services around. If we compare Travis to the other CI services, it has some benefits over the others...