# Continuous Integration (CI)

> Merging code often. A machine builds and tests each change.

**Field:** Software Development  
**Category:** DevOps & Cloud  
**Also known as:** CI, Continuous Integration Server

## Think of it like

Think of it like a spell check that looks at each word as you type it.

## Definition

Continuous integration means merging code often and letting a machine check each change. When someone pushes code, a server builds it and runs the tests. If anything fails, the team knows within minutes. Small changes merged daily are easy to fix. Big changes merged once a month clash badly.

## Example

Emma opens a pull request. Within four minutes, CI builds it and runs 600 tests, and a red cross shows one test broke.

## Why it matters

Bugs found minutes after they were written are cheap. Found weeks later, nobody remembers why the code is that way.

## Common mistake

Ignoring a red build and merging anyway. Soon nobody trusts the checks, and they stop helping.

## Three principles

- **Merge often.** Small changes, daily.
- **Check every change.** Build and test on a server.
- **Fix red fast.** A broken build comes first.

## Related terms

- [Continuous Delivery](https://learn.benibix.com/term/development/continuous-delivery)
- [CI/CD Pipeline](https://learn.benibix.com/term/development/ci-cd-pipeline)
- [Unit Test](https://learn.benibix.com/term/development/unit-test)
- [Pull Request](https://learn.benibix.com/term/development/pull-request)
- [Trunk-Based Development](https://learn.benibix.com/term/development/trunk-based-development)

## Told apart from

- [Continuous Integration (CI) vs Continuous Delivery (CD)](https://learn.benibix.com/compare/continuous-integration-vs-continuous-delivery): People think CI and CD are one step, because they are written together as CI/CD, and they are not. CI checks each change: it builds the code and runs the tests on every push. CD comes after it and takes a passing change toward the live site. You can have CI with no CD, but not CD with no CI.

## Taught in

- [Branch Protection and Hooks](https://learn.benibix.com/learn/development-version-control/branch-protection-and-hooks): Git and GitHub, 12/13

---

Source: https://learn.benibix.com/term/development/continuous-integration
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-18
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
