Continuous Integration

Fowler's CI definition, the ten practices, and why daily mainline commits with a fast self-testing build is the whole game.

Overview

What continuous integration is

Continuous Integration is the practice of merging every developer's work to a shared mainline at least once a day, with each merge verified by an automated build that includes the test suite. Martin Fowler's canonical 2006 article (martinfowler.com/articles/continuousIntegration.html) defines it as 'a software development practice where members of a team integrate their work frequently, usually each person integrates at least daily — leading to multiple integrations per day. Each integration is verified by an automated build (including test) to detect integration errors as quickly as possible.'

The setup is small. Each developer pushes small changes to one mainline, and a CI server checks every push.

Key concepts

  • Continuous Integration (Fowler verbatim)
  • Mainline / trunk
  • Self-testing build
  • Ten-minute build rule
  • Stop-the-line
  • Integration machine

Interview questions

  • What is Continuous Integration, and what makes a CI setup actually CI vs theatre?
  • Why is a fast build (≤10 minutes) such a hard requirement, not a nice-to-have?
  • How should the team respond when mainline goes red?
  • Walk through Fowler's ten CI practices and which ones do most of the work.

Sign up free to read the full topic

More DevOps topics

Start free on Cariara · Coding problems · System design studio