官术网_书友最值得收藏!

Source control

CI starts with some shared repository, typically a source control system, such as Subversion (SVN) or Git. Source control systems make sure all code is kept in a single place. It's easy for developers to check out the source, make changes, and check in those changes. Other developers can then check out those changes.

In modern source control systems, such as Git, you can have multiple branches of the same software. This allows you to work on different stages of the software without troubling, or even halting, other stages of the software. For example, it is possible to have a development branch, a test branch, and a production branch. All new code gets committed on development; when it is tested and approved, it can move on to the test branch and, when your customer has given you approval, you can move it into development. Another possibility is to have a single main branch and create a new (frozen) branch for every release. You could still apply bug fixes to release branches, but preferably not new features.

Don't underestimate the value of source control. It makes it possible for developers to work on the same project and even the same files without having to worry too much about overwriting others' code or being overwritten by others.

Next to code, you should keep everything that's necessary for your project in your repository. That includes requirements, test scripts, build scripts, configurations, database scripts, and so on.

Each check into this repository should be validated by your automated build server. As such, it's important to keep check-ins small. If you write a new feature and change too many files at once, it becomes harder to find any bugs that arise.

主站蜘蛛池模板: 淮安市| 甘肃省| 九台市| 普洱| 陵川县| 太仆寺旗| 灵璧县| 醴陵市| 红原县| 凤凰县| 德安县| 无为县| 扬州市| 丰镇市| 陇川县| 高唐县| 花莲县| 阳春市| 榆社县| 肇庆市| 大厂| 开封县| 晋州市| 商水县| 赤城县| 贡山| 武夷山市| 靖边县| 绥芬河市| 策勒县| 长汀县| 建宁县| 汉川市| 林芝县| 辽阳市| 福清市| 嵊州市| 湘乡市| 沙洋县| 巴中市| 娄烦县|