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.

This entry was posted in Uncategorized. Bookmark the permalink. Follow any comments here with the RSS feed for this post.

5 Responses to Demo on automating your build with NAnt and CCNet

  1. @Mike,
    Yes, the database migrations come from the vincent-vega oss project on googlecode.

  2. @Mike
    Pretty sure it comes from this project:
    http://code.google.com/p/vincent-vega/

  3. Mike Pond says:

    Where are you getting the “updateSqlDatabase” Nant task from?

  4. @Joshua,
    Modified – changed https to http, and that should work anonymously.

  5. There is an svn external reference to bin\xcopy that is prompting for authorization.

Leave a Reply