Demo on automating your build with NAnt and CCNet

I’ve prepared a presentation and demo of automating a build with NAnt and CCNet.  It uses Subversion for the trunk, and all you have to do is checkout the trunk and run the build.  You can check it out anonymously from the Google Code Subversion repository.

In order for this to work,

checkout http://palermo.googlecode.com/svn/automatedbuilddemo/trunk
svn checkout http://palermo.googlecode.com/svn/automatedbuilddemo/trunk demo-trunk

After getting the trunk, you’ll want to run “build.bat” from the command line.  Here are the dependencies:

  • .Net 2.0
  • SQL 2005 Express in a named instance “sqlexpress” – which is the default.

That’s it.  All other dependencies are included in the trunk.  This demo demonstrates how to create/update a database during a build, version, compile and test.  The tests include some unit tests and an integration test that test the database whose schema is created during the build.  Compilation is done by delegating to msbuild.exe from NAnt.

I’ve also attempted to include CCNet itself in the trunk, but there are still a few issues running CCNet from that location.