Thursday, 31 December 2009
SVN Setup
- Created a new folder for storing respositories at C:\Repositories
- Changed Windows Service to use this location
- Added folder GolfMine inside C:\Repositories
- Created SVN repository using command line
svnadmin create --fs-type fsfs C:\Repositories\GolfMine - Did an initial import of the branch,tags & trunk directory using a file upload to
file:///C:/Repositories/GolfMine - Moved C:\Project\GolfMine to GolfMineOld
- Created a new directory GolfMine
- SVN Checkout to GolfMine from
svn://localhost/GolfMine/trunk - Put the contents of GolfMineOld into GolfMine
- Performed an SVN Add but removed all
*/obj directories
*/bin directories
/build directory
checked in all files in the /tools directory
Setup the repository
svnadmin create --fs-type fsfs C:\Repository
Running SubVersion as a service
sc create svnserve
binpath=
"C:\Program Files\Subversion\bin\svnserve.exe -r
C:\Repository --service"
displayname="Subversion"
depend=Tcpip
start= auto
Monday, 14 December 2009
Nant build fails due to registry error for .net 3.5 location
Sound effects
http://www.thanatosrealms.com/war2/horde-sounds.html
GolfMine.build
<?xml version="1.0" ?>
<project name="GolfMine" default="test" xmlns="http://nant.sf.net/schemas/nant.xsd">
<property name="build.dir" value="build" />
<property name="nant.settings.currentframework" value="net-3.5" />
<!-- User targets -->
<target name="clean" description="Delete Automated Build artifacts">
<delete dir="${build.dir}" if="${directory::exists(build.dir)}"/>
</target>
<target name="compile" description="Compiles using the AutomatedDebug Configuration">
<msbuild project="src\GolfMine.sln">
<property name="Configuration" value="AutomatedDebug" />
</msbuild>
</target>
<target name="test" depends="compile, run-unit-tests"
description="Compile and Run Tests" />
<target name="full" depends="clean, test, dist" description="Compiles, tests, and produces distributions" />
<!-- Internal targets -->
<target name="run-unit-tests">
<mkdir dir="${build.dir}\test-reports" />
<exec program="regsvr32" workingdir="tools\NCover" commandline="/s CoverLib.dll" />
<exec program="tools\ncover\NCover.Console.exe"
workingdir="${build.dir}\Debug\UnitTests">
<arg value="//w "."" />
<arg value="//x "..\..\test-reports\Coverage.xml"" />
<arg value=""..\..\..\tools\nunit\nunit-console.exe"" />
<arg value=""GolfMine.UnitTests.dll" "/xml:..\..\test-reports\UnitTests.xml" "/nologo"" />
</exec>
</target>
<target name="dist">
<copy todir="${build.dir}\dist">
<fileset basedir="${build.dir}\Debug\GolfMine">
<include name="**\*"/>
<exclude name="**\*.pdb" />
</fileset>
</copy>
<zip zipfile="${build.dir}\GolfMine.zip">
<fileset basedir="${build.dir}\dist">
<include name="**\*" />
</fileset>
</zip>
</target>
</project>
ccnet.config
<project>
<name>GolfMine</name>
<workingDirectory>C:\Integration\GolfMine\WorkingDirectory</workingDirectory>
<artifactDirectory>C:\Integration\GolfMine\Artifacts</artifactDirectory>
<triggers>
<intervalTrigger seconds="60" name="continous"/>
</triggers>
<tasks>
<nant>
<executable>C:\Projects\GolfMine\tools\nant\nant.exe</executable>
<baseDirectory>C:\Projects\GolfMine</baseDirectory>
<buildFile>GolfMine.build</buildFile>
</nant>
</tasks>
</project>
</cruisecontrol>
TreeSurgeon
C:\Projects\GolfMine
Cruise Control .Net
- CruiseControl.Net 1.5
- CruiseControl.Net CCTray 1.5
- CruiseControl.Net Tools 1.5
Initial Setup
- .Net Framework 2.0 SDK
- .Net Framework 3.5 SDK
- Visual C# 2008 Express Edition
- Visual Web Developer 2008 Edition
- SQL Server 2008 Express
- Internet Explorer 8.0
- Web Platform Installer