Friday, August 29, 2014

Continuous Integration - CI

Continuous Integration - CI

Continuous Integration is a development practice that requires developers to integrate code into a shared repository several times a day

Advantages of CI

1)Catch issues fast and remove them in early stages
2)Reduce integration problems allowing you to deliver software more rapidly
3)Make it easy for anyone to get the latest executable
4)Make your build self-testing
5)Automate the build
6)Maintain a single source repository

How CI Works

1)Developers check out code into their private workspace.
2)When done, the commit changes to the repository.
3)The CI server monitors the repository and checks out changes when they occur.
4)The CI server builds the system and runs unit and integration tests.
5)The CI server releases deployable artefacts for testing.
6)The CI server assigns a build label to the version of the code it just built.
7)The CI server informs the team of the successful build.
8)If the build or tests fail, the CI server alerts the team.
9)The team fix the issue at the earliest opportunity.
10)Continue to continually integrate and test throughout the project.

Things to Remember

1)Check in frequently
2)Don’t check in broken code
3)Don’t check in untested code
4)Don’t check in when the build is broken
5)Don’t go home after checking in until the system builds



No comments:

Post a Comment