Continuous Integration (CI): Automatically building and testing the code every time someone pushes changes or opens a pull request, so problems are caught early, before they reach other people.
Example
You open a pull request. The CI pipeline compiles the code and runs the tests, and one test fails because your change broke the discount calculation. You fix it before anyone reviews your code.
How CI Works
- A developer pushes code or opens a pull request.
- The CI server checks out the code and builds it.
- It runs automated tests and quality checks.
- It reports pass or fail on the pull request.
- Many teams block merging until CI passes.
When the Build Breaks
A failing build on the main branch blocks the whole team. If your change broke it, fixing it is your top priority. Read the pipeline log, find the failing step or test, and fix it or revert your change. Never ignore a red build.
Good CI Habits
- Run tests locally before pushing.
- Push small changes often, so failures are easy to trace.
- Add tests with every feature, so CI actually protects it.
- Don't disable a failing test to get your change through; ask first.
Common CI tools include GitHub Actions, Jenkins, GitLab CI, and Azure DevOps Pipelines. See CI/CD for the full pipeline.
Related terms
- CI/CD: the combined build, test, and release practice.
- Continuous Deployment (CD): the release step after CI.
- Unit Testing: the tests CI runs most.
- Pull Request (PR): CI usually runs on every PR.
Previous term: Continuous Deployment (CD) | Next term: CRUD
Related guides
- DevOps Interview Questions Test
- Build a GitHub Portfolio That Gets You Internship Interviews
- What to Do in Your First Week of an IT Internship
Frequently asked questions
What is continuous integration?
Continuous integration is automatically building and testing code every time changes are pushed, to catch problems early.
What is a broken build?
A build where compilation or tests fail. On a shared branch, it should be fixed immediately.
Which tools are used for CI?
GitHub Actions, Jenkins, GitLab CI, Azure DevOps Pipelines, and CircleCI are common.
Can I add CI to my personal project?
Yes. A simple GitHub Actions workflow that runs your tests is easy to set up and impresses interviewers.
Explore more internship terms
The IT Internship Glossary explains 199 terms you will hear before and during your internship, with simple definitions and real examples.
Browse all 199 terms