What is Continuous Integration (CI)?
During early period of software development, most of the software projects faced the issue at the time of integration of the components with each other. When multiple people work on the same project, issues do occur during integration. It is risky, costly and time consuming to fix such issues.
To tackle above problem, Continuous integration emerged.
In continuous integration, all developers commit their code to the baseline (trunk or master) repository everyday and build servers then compile and build the code after every commit immediately. Thus, if there is any issue during integration, stakeholders are notified instantly about the failure of the build.
Best practices for the implementation of CI.
Below is the list of best practices that should be adopted for CI
List of popular CI servers.
What do you think on this topic? Please express your opinion or ask any question through comment below. You can write to me at reply2sagar@gmail.com
During early period of software development, most of the software projects faced the issue at the time of integration of the components with each other. When multiple people work on the same project, issues do occur during integration. It is risky, costly and time consuming to fix such issues.
To tackle above problem, Continuous integration emerged.
In continuous integration, all developers commit their code to the baseline (trunk or master) repository everyday and build servers then compile and build the code after every commit immediately. Thus, if there is any issue during integration, stakeholders are notified instantly about the failure of the build.
Best practices for the implementation of CI.
Below is the list of best practices that should be adopted for CI
- Central or distributed source code repository (like SVN or GIT HUB) should be maintained.
- All developers must check out the latest code from baseline repository everyday.
- Changes in the local machine code must be first tested and then committed into baseline.
- Each commit operation into the baseline must start build process using build servers. Build servers may use tools like maven, ant, make, gradle, nant etc.
- If there is a failure in the build process, all stakeholders must be notified by an email.
- Build servers must communicate with CI servers which will kick off the automated tests as soon as build is successful.
- If there are any failures in functional tests, all stakeholders must be notified by an email.
- If all tests pass, build must be deployed automatically using tools like Octopus Deploy
List of popular CI servers.
What do you think on this topic? Please express your opinion or ask any question through comment below. You can write to me at reply2sagar@gmail.com
No comments:
Post a Comment
Leave your valuable feedback. Your thoughts do matter to us.