Process and automation
Continuous integration (CI)
Continuous integration is a way of working in which changes are merged into a shared codebase several times a day and automatically built and tested each time.
Also known as: CI/CD, build pipeline
How does CI work?
Every push to version control starts a pipeline, for example in GitLab CI, GitHub Actions or Jenkins. The pipeline builds the software, runs automated tests and reports the result within minutes. A red build takes priority over new work.
CI, CD and continuous deployment
- Continuous integration: build and test on every change.
- Continuous delivery: every green build can be released at any time.
- Continuous deployment: every green build is released automatically.
CI with hardware
Embedded teams benefit from CI too. Unit and SiL tests run on ordinary build servers. For tests on real hardware, a test bench is connected as a runner: the pipeline flashes the new firmware and starts the HiL tests automatically.
Prerequisite: tests you can trust
CI is only as good as the tests in it. Slow suites hold the team back, and flaky tests lead people to ignore red builds. Fast, reliable feedback is the real goal.