CodeBetter.Com
CodeBetter.Com
RSS 2.0 via Feedburner
           Do you Twitter? Follow us @CodeBetter

Jeffrey Palermo (.com)

Blog moved to www.jeffreypalermo.com

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.



Comments

Joshua Flanagan said:

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

# September 25, 2007 10:47 PM

Jeffrey Palermo said:

@Joshua,

Modified - changed https to http, and that should work anonymously.

# September 26, 2007 12:13 AM

Mike Pond said:

Where are you getting the "updateSqlDatabase" Nant task from?

# November 1, 2007 4:02 PM

Andrew Browne said:

@Mike

Pretty sure it comes from this project:

code.google.com/.../vincent-vega

# January 5, 2008 10:53 PM

Jeffrey Palermo said:

@Mike,

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

# January 5, 2008 11:45 PM

About Jeffrey Palermo

Jeffrey Palermo is a software management consultant and the CTO of Headspring Systems in Austin, TX. Jeffrey specializes in Agile coaching and helps companies double the productivity of software teams. Jeffrey is an MCSD.Net , Microsoft MVP, Certified Scrummaster, Austin .Net User Group leader, AgileAustin board member, INETA speaker, INETA Membership Mentor, Christian, husband, father, motorcyclist, Eagle Scout, U.S. Army Veteran, and Texas A&M University graduate. Check out Devlicio.us!

Our Sponsors

Free Tech Publications

This Blog

Syndication

News

Headspring Systems

View Jeffrey Palermo's profile on LinkedIn

See my new blog at .jeffreypalermo.com