什么叫持续集成?

原文: https://docs.microsoft.com/en-us/azure/devops/what-is-continuous-integration

---------------------------------------------------------------------------

What is Continuous Integration?

  • 04/04/2017
  • 2 minutes to read

By: Sam Guckenheimer

Continuous Integration (CI) is the process of automating the build and testing of code every time a team member commits changes to version control. CI encourages developers to share their code and unit tests by merging their changes into a shared version control repository after every small task completion. Committing code triggers an automated build system to grab the latest code from the shared repository and to build, test, and validate the full master branch (also known as the trunk or main).

CI emerged as a best practice because software developers often work in isolation, and then they need to integrate their changes with the rest of the team’s code base. Waiting days or weeks to integrate code creates many merge conflicts, hard to fix bugs, diverging code strategies, and duplicated efforts. CI requires the development team’s code be merged to a shared version control branch continuously to avoid these problems.

CI keeps the master branch clean. Teams can leverage modern version control systems such as Git to create short-lived feature branches to isolate their work. A developer submits a “pull request” when the feature is complete and, on approval of the pull request, the changes get merged into the master branch. Then the developer can delete the previous feature branch. Development teams repeat the process for additional work. The team can establish branch policies to ensure the master branch meets desired quality criteria.

Teams use build definitions to ensure that every commit to the master branch triggers the automated build and testing processes. Implementing CI this way ensures bugs are caught earlier in the development cycle, which makes them less expensive to fix. Automated tests run for every build to ensure builds maintain a consistent quality.

Read more about the Continuous Integration capabilities of Visual Studio Team Services.

Learn how to set up Continuous Integration for any platform.

最新文章

  1. Favorite Setting
  2. 无法识别的配置节 connectionStrings
  3. Js图片切换
  4. ASP.NET MVC 3 Razor Views in SharePoint
  5. app被Rejected 的各种原因翻译。这个绝对有用。
  6. LaTex希腊字母
  7. python面对对象编程------4:类基本的特殊方法__str__,__repr__,__hash__,__new__,__bool__,6大比较方法
  8. iOS 堆和栈 的理解
  9. MVC-03 控制器(4)
  10. Android开发之简单的电子相册实现
  11. hdu_5894_hannnnah_j’s Biological Test(打表找规律)
  12. 【Xilinx-VDMA模块学习】-00-开始
  13. python字典的操作
  14. Python之面向对象二
  15. Mina源码阅读笔记(五)—Mina对连接的操作IoSession
  16. 图像控件 ImageControl
  17. 牛客网数据库SQL实战(21-25)
  18. iOS成长之路-使用系统默认声音、震动
  19. ADO Connection failure
  20. SVN相关命令

热门文章

  1. require.js使用baseUrl + paths导入文件配置的3种方法
  2. selenium 3.0与2.0 打开火狐浏览器的区别
  3. 使用bottle进行web开发(9):文件上传;json传递
  4. MBProgressHUD自定义视图大小的修改
  5. (十)while和until循环
  6. React-Native集成dva.js
  7. HDU 2504.又见GCD-递归
  8. 1953 Problem B #103. 子串查找
  9. MySQL 8.0.13安装教程(windows 64位) (转)
  10. 【容斥原理】CDOJ - 1544 - 当咸鱼也要按照基本法