Glossary termPractice

Continuous Integration

Also known as: CI

Development practice in which programmers merge changes into a shared repository frequently, with each change verified by an automated build and tests.

Continuous integration (CI) is the practice of integrating each developer's work into a shared mainline often, typically at least daily, and checking every integration with an automated build and test run. The aim is to detect conflicts and defects while they are small and their cause is fresh in mind, rather than during a long and painful merge at the end of a project. CI depends on version control, a fast and reliable test suite and a team habit of fixing a broken build before doing anything else.

Grady Booch used the term in 1991, and Kent Beck's Extreme Programming made frequent integration a core practice later in the decade. An influential article by Martin Fowler and Matthew Foemmel in 2000 described how to make it work on real projects. Dedicated CI servers followed, among them CruiseControl and later Hudson and its fork Jenkins, which watch a repository and run builds when changes arrive. Hosted services and features built into code platforms such as GitLab and GitHub then made CI a default part of most software projects.

Continuous integration is the foundation on which continuous delivery and deployment pipelines are built: without a constantly verified mainline, automated releases are not possible. Its benefits depend heavily on discipline. A slow or flaky test suite erodes trust, and long-lived branches that merge rarely defeat the purpose even when a CI server is running. Practices such as test-driven development, trunk-based development and feature flags are often paired with CI to keep changes small enough to integrate continuously.

Key points

  • CI merges small changes into a shared mainline frequently and verifies each one automatically.
  • The term was used by Grady Booch in 1991 and became a core practice of Extreme Programming.
  • A broken build is treated as a priority so that the mainline stays in a working state.
  • Continuous integration is a prerequisite for continuous delivery and automated deployment pipelines.

Related entries

Glossary term

Automated sequence of stages that builds, tests and releases software changes, combining continuous integration with continuous delivery or deployment.

Glossary term

Software engineering approach in which every change is built, tested and prepared so that it can be released to production safely at any time.

Glossary term

Version Control

ProgrammingDevOps

System that records changes to files over time so that people can track history, revert mistakes and collaborate on the same codebase.

Technology

Git

ProgrammingDevOpsFOSS

Free and open-source distributed version control system created by Linus Torvalds in 2005, used to track changes in source code.

Person

Kent Beck

Programming

American software engineer who created Extreme Programming, popularized test-driven development and co-wrote the Manifesto for Agile Software Development.

Person

Martin Fowler

Programming

British software developer and author known for popularizing refactoring, enterprise design patterns, microservices and agile development practices.

Glossary term

Software development practice in which a failing automated test is written before the code that makes it pass, after which the code is refined.

Glossary term

Unit Testing

Programming

Practice of verifying that small, individual pieces of code, such as single functions or classes, behave correctly when tested in isolation.

Featured in guides

Referenced by

Other entries that discuss or point to Continuous Integration.