Components: Trac, Cruisecontrol, Subversion
Essential Reference:
1. http://trac.edgewall.org/wiki/TracOnWindows#Subversion
2. http://trac.edgewall.org/wiki/TracOnWindows/Python2.5
Steps:
- Install Python 2.5 on Windows
Add C:\Python25 and C:\Python25\Scripts to PATH environment variable.
- Instal Genshi for Python 2.5 by running Windows installer
Download location: http://genshi.edgewall.org/wiki/Download#Zippackage
- Install Setuptools for Python 2.5
The download point is in “Method1: Using Installers” section of Ref #2.
- Install Trac 0.11 for Python 2.5
The download point is in “Method1: Using Installers” section of Ref #2
Running Trac standalone with command:
tracd –port 8000 c:\TracProjects\Myproject
Test Trac within browser via http://mysite:8000
If you have existing projects working on older versions, you need to upgrade your projects by running command:
trac-admin c:\ TracProjects\Myproject upgrade
- Install Gantt Charts Plugin
Download Gantt Charts 0.3.2a plugin source from:
http://willbarton.com/code/tracgantt/
Fix the plugin to fit Python 2.5 by following the instruction at
http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/126112
Compile Gantt Charts plug in by running command under source code directory
python setup.py bdist_egg
easy_install –always-unzip TracGantt-0.3.2.a-py2.5.egg
- Install ClearSilver.egg
Download clearsilver.egg for Python 2.5 from http://www.clearsilver.net/downloads/
The egg file is download as .zip file extension, change it to .egg and install it with easy_install.
- Install Subversion
Reference Link: http://blogs.vertigosoftware.com/teamsystem/archive/2006/01/16/Setting_up_a_Subversion_Server_under_Windows.aspx
Download subversion binary package from:
http://subversion.tigris.org/files/documents/15/45600/svn-win32-1.6.1.zip
Unpack the package to C:\Program Files\subversion
Add C:\Program Files\subversion to PATH environment variables.
Install subversion Python Binding with command:
easy_install –Z http://subversion.tigris.org/files/documents/15/45607/svn-python-1.6.1.win32-py2.5.exe
Download SVNService from http://gda.utp.edu.co/pub/svn/SVNService.zip
Copy svnservice.exe to C:/Program Files/subversion/bin/
Run following commands under command line:
svnservice -install --daemon --root "C:\Repository"
sc config svnservice start= auto
net start svnservice
- Add Trac to Service
Reference Link:http://trac.edgewall.org/wiki/TracOnWindowsStandalone
- download the Windows Server 2003 Resource Kit at Microsoft
- run "InstSrv <servicename> c:\path\to\resourcekit\SrvAny.exe", where you insert your own service name (without angle brackets, e.g. tracd) and the full path to the SrvAny.exe.
- open HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\<servicename> in RegEdit
- create subkey *Parameters*, below which you will create 2 string values:
- create string value *Application* with the full path to python.exe
- create string value *AppParameters* with the set of desired tracd parameters, e.g. "c:\Python25\Scripts\tracd-script.py –port 8080 c:\path\to\trac" (without the quotes)
- open the Services tool (somewhere in the administrative tools in the Windows control panel) and start your service
- Install CruiseControl.NET
Download CruiseControl.NET from http://sourceforge.net/project/downloading.php?group_id=71179&filename=CruiseControl.NET-1.4.3-Setup.exe&a=58074311
Install CruiseControl.NET and configure it with the source control and compilation information.
Download and install libxml2-python package.
Download Cruise Control Trac plugin TracCC-0.2.4dev_r31-py2.5.egg, install it from project Admin Panel.
This version is working with CruiseControl.Net, add CruiseControl section to project Trac configuration file trac.ini:
[cruisecontrol]
ccpath = C:\Program Files\CruiseControl.NET\server\Sanjel eService R2 Unit Tests\Artifacts\log
buildstatusfile = SanjelEServiceR2UnitTests.state
xslfile = C:\Program Files\CruiseControl.NET\server\xsl\header.xsl
- Add Subersion Repository setting to Trac
Update trac.ini in your project conf folder, adding subversion repository and authentication information to the [trac] section. You may link to your source control system natively with Trac.
- Add additional plugings
- ChangeLogPlugin
Reference Link: http://trac-hacks.org/wiki/ChangeLogPlugin
Adds a Wiki macro that displays a change log for a repository path
Track Links format [[ChangeLog(/path/to/project/repository, 5)]]
Entries (RSS)