Continuous Integration is the DevOps practice to integrate the new feature implementation or a bug fix in the existing distributed version control systems such as Git that triggers code quality checks, unit test execution, and build. Continuous Integration is easy to implement, and hence for DevOps starters, it works as a solid base on which the rest of DevOps practices can stand.
The following are some of the best practices related to continuous integration:
- Commit code frequently - feature completion/bug fix
- Run builds on the system to verify
- Never commit broken code
- Integrate notifications on failures
- Fix broken builds immediately
- Write automated unit tests (Coverage %)
- Easy access to packages generated after successful build and quality gates verifications
- Configure notifications for failures
Hope this was helpful.