What is Continuous Integration?

What is Continuous Integration?

Continuous integration is a software development method where members of the team can integrate their work at least once a day. In this method, every integration is checked by an automated build to search the error. The CI concept was first introduced over two decades ago to avoid "integration hell," which happens when integration is put off till the end of a project.

In Continuous Integration after a code commit, the software is built and tested immediately. In a large project with many developers, commits are made many times during a day. With each commit code is built and tested. If the test is passed, build is tested for deployment. If the deployment is a success, the code is pushed to Production. This commit, build, test, and deploy is a continuous process, and hence the name continuous integration/deployment.

In this CI tutorial, you will learn:

Development without CI vs. Development with CI

Here are key differences between development using CI or without CI.

Development without CI Development with CI
Lots of Bugs Fewer bugs
Infrequent commits Regular commits
Infrequent and slow releases Regular working releases
Difficult integration Easy and Effective Integration
Testing happens late Testing happens early and often.
Issue raised are harder to fix Find and fix problems faster and more efficiently.
Poor project visibility Better project visibility

Difference between Compilation and Continuous Integration

Activities in Continuous Integration

While compilation only compiles a code, CI does the following activities

DB integration:

Code Inspection:

Automated Deployment:

Document generation:

Compilation:

Compilation is the process the computer takes to convert a high-level programming language code into a machine language that the computer able to understand. It ensures a code compiler on every target platform.

When do I build?

How do I build?

CI process

What do you need to conduct CI process?

Here, are the key elements which you need to perfom the entire CI process:

How Continuous integration work?

You are surely aware of the old phone Nokia. Nokia used to implement a procedure called nightly build. After multiple commits from diverse developers during the day, the software built every night. Since the software was built only once in a day, it's a huge pain to isolate, identify, and fix the errors in a large codebase.

Later, they adopted the Continuous Integration approach. The software was built and tested as soon as a developer committed code. If any error is detected, the respective developer can quickly fix the defect.

Example of Continuous Integration

Features of CI

Here, are important features of Continuous Integration

Why Use CI?

Here are important reasons for using Continuous Integration:

Best practices of using CI Systems

Here, are some important best practices while implementing

Disadvantages of CI

Here, are cons/drawbacks of Continuous Integration process:

Tools for CI process

Here, are some most essential CI tools:

Jenkins:

Jenkins is an open-source continuous integration tool. It is written using the Java programming language. It facilitates real-time testing and reporting on isolated changes in a more massive codebase. This software helps developers to quickly find and solve defects in their codebase & automate testing of their builds.

Bamboo:

Bamboo is a continuous integration build server that performs - automatic build, test, and releases in a single place. It works seamlessly with JIRA software and Bitbucket. Bamboo supports many languages and technologies such as CodeDeply, Ducker, Git, SVN, Mercurial, AWS, and Amazon S3 buckets.

TeamCity:

TeamCity is a Continuous Integration server that supports many powerful features. It maintains a CI server healthy and stable even when no builds are running. It provides better code quality for any project

Summary:

 

YOU MIGHT LIKE: