持续集成:一种软件开发实践,团队成员频繁(通常每天多次)把代码变更合并到共享主干/主仓库中,并由自动化流程(如构建、测试、静态检查)尽快验证这些变更,以便及早发现并修复问题。也常简称为 CI。(在不同语境下也可泛指“集成过程持续进行”。)
/kənˈtɪnjuəs ˌɪntɪˈɡreɪʃən/
We use continuous integration to run tests on every commit.
我们使用持续集成,在每次提交时都自动运行测试。
By adopting continuous integration with automated builds and regression tests, the team reduced integration conflicts and detected bugs much earlier.
通过采用带自动构建与回归测试的持续集成,团队减少了集成冲突,并更早发现了缺陷。
continuous 来自拉丁语 continuus,意为“连续的、不间断的”;integration 源自拉丁语 integrare,意为“使完整、合并为整体”。合在一起,“continuous integration”字面意思就是“连续地进行整合”,在软件工程中指“频繁合并 + 自动化验证”的开发方式。