持续集成(Continuous Integration,CI) 是开发人员 频繁地将代码合并 到共享仓库的实践,每次集成都会 自动验证(构建和测试)。它能早期发现问题,并使代码库保持在健康的、可工作的状态。
核心实践
text
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).
