Skip to content

Continuous integration

Continuous integration (CI) is the practice of merging every developer change into a shared mainline several times a day, with each merge triggering an automated build and test run so integration problems surface within minutes.

Definition

What it is

CI is a discipline, not a tool: merge often, run automated build + tests on every merge, fail loud and fast. The toolchain (GitHub Actions, GitLab CI, Jenkins) automates what the discipline requires.

Why it matters

Long-lived branches accumulate divergent code; CI collapses the integration cost from days to minutes. Every commit is a checkpoint.

CI vs continuous delivery vs continuous deployment

Aspect

CI

CD (delivery)

CD (deployment)

Automated build

Yes

Yes

Yes

Automated tests

Yes

Yes

Yes

Manual gate to prod

No prod yet

Yes

No

Deploy on every commit

No

No

Yes

Origin

The term was popularized by Martin Fowler in 2006 as an XP practice. Grady Booch coined "continuous integration" in 1991 in his method for object-oriented design.

Evidence

FAQ

CI vs trunk-based development?

TBD is the branching strategy; CI is the practice of testing every merge. They reinforce each other.

How long should CI take?

Under 10 minutes for the fast suite; longer suites run in parallel.

What if the build fails?

Nobody merges until it is green; the fix is a top priority for the whole team.

Is CI only for tests?

No: linting, type checks, security scans, artifact publishing.

Connections

Etymology

Origin: compound

  • continuous (adjective): from Latin continuus, "uninterrupted"
  • integration (noun): from Latin integrare, "to make whole"

Semantic network

Continuous isoftware-eBlue/greenpipelineBuild

● broader ● narrower ● related

Broader

  • software-engineering

Related

Used in the garden

Sources