26
Mar
09

Automated Builds

I’ve been on several different projects across various organizations and one thing that I notice consistently is that they do not have an automated build in place for their projects.  Either the developers do not understand the concepts and benefits behind using an automated build or they choose to neglect it because it’s extra work.  Automated builds is an important aspect of a project similar to source control.

robot

What would an automated build do?

  • Clean build artefacts
  • Build the application binaries
  • Tear down and rebuild development and test databases
  • Run Unit Tests, Integration Tests, etc.
  • Run Code Coverage, Metrics, etc.
  • Deploy application to specific environment (i.e. dev, test, prod)
  • Recompile libraries and binaries used by the application
  • Notifications
  • Version application binaries
  • Branching / Releasing your application
  • Perform daily builds (via scheduled task or Cruise Control .NET)

At the beginning of the project, spend a day or two setting up an automated build to at least clean, compile, and test your application.  As the project matures, when required, you can add extra features such as code coverage, deployment, etc to the build script.  Trust me, starting off the project with an automated build will save you a lot of time and headaches as the project continues.

The benefits of using automated builds are:

  • Reduce time and effort to build the application
  • Reliable builds of your application at any time
  • Avoid tedious, repetitive, and error-prone work
  • Reduce the risk of creating unknown dependencies

Some tools to help with automated builds are:

* The tools stated above are for projects built on the .NET Framework.  There are similar and/or equivalent tools for other development platforms.

Hopefully in the next week or two, if time permits, I will post some NAnt and MSBuild samples.


0 Responses to “Automated Builds”



  1. Leave a Comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s


Flickr Photos

4531 - Maruyama Park, Kyoto

4524 - Maruyama Park, Kyoto

4523 - Maruyama Park, Kyoto

More Photos

Pages

 

March 2009
M T W T F S S
    May »
 1
2345678
9101112131415
16171819202122
23242526272829
3031  

Follow

Get every new post delivered to your Inbox.