Skip to main content


developerWorks  >  Java technology  >

Spot defects early with Continuous Integration

Your complete guide to creating a best-of-breed CI environment

developerWorks

Level: Intermediate

Andrew Glover (aglover@stelligent.com), President, Stelligent Incorporated

21 Nov 2007

Register now or sign in using your IBM ID and password.

Continuous Integration (or CI) is a process that consists of continuously compiling, testing, inspecting, and deploying source code. In many Continuous Integration environments, this means running a new build anytime code within a source code management repository changes. The benefit of CI is simple: assembling software often greatly increases the likelihood that you will spot defects early, when they still are relatively manageable. In this tutorial, a companion to his series In pursuit of code quality, Andrew Glover introduces the fundamental aspects of Continuous Integration and steps you through how to set up a CI process using best-of-breed open source technologies.

Objectives

This tutorial guides you step-by-step through the fundamental concepts of Continuous Integration. When you are done with this one-hour tutorial, you will understand the benefits of Continuous Integration as well as how to set up your environment. The resulting build process will run both tests and software inspections and will report back violations almost as quickly as they occur.

Prerequisites

To get the most from this tutorial, you should be familiar with Java™ development in general. This tutorial also assumes that you understand the value of building software with an acceptable level of quality and that you are familiar with JUnit.


System requirements

A Continuous Integration environment requires an automated build tool, a code repository, and a CI server. To follow along and try out the code for this tutorial, you'll need a working installation of the Java platform as well as Hudson 1.150, Ant 1.7, JUnit 3.8.1, and Subversion 1.4.x.

The recommended system configuration for this tutorial is as follows:

  • A system supporting either the Sun JDK 1.5.0_09 (or later) or the IBM Developer Kit for Java technology 1.5.0 SR3 with at least 500 MB of main memory
  • At least 20MB of disk space to install the software components and examples covered

The instructions in the tutorial are based on a Microsoft® Windows® operating system. All the tools covered in the tutorial also work on Linux® and Unix® systems.



Duration

1 hour


Formats

html, pdf


Share this....

digg Digg this story del.icio.us del.icio.us Slashdot Slashdot it!


Back to top


Document options

Document options requiring JavaScript are not displayed

Discuss


My developerWorks needs you!

Connect to your technical community