Continuous Integration (CI) ialah amalan developers kerap menggabungkan kod mereka ke dalam repositori bersama, di mana setiap integrasi disahkan secara automatik (dibina dan diuji). Ia menangkap masalah lebih awal dan mengekalkan codebase dalam keadaan yang sihat dan berfungsi.
Amalan teras
Developers integrate code FREQUENTLY (at least daily) into the shared/main branch:
→ each integration is AUTOMATICALLY built and tested (by a CI server/pipeline)
→ problems are caught IMMEDIATELY (on each small change, not after weeks)
→ vs the old way: developers work in isolation for long periods → painful "integration
hell" when finally merging diverged work (many conflicts, surprises, bugs).
