The MyTARDIS project is hosted on Google Code and uses an subversion repository for source code control.
SVN users who whish to contribute code please checkout a copy of the current source:
svn checkout http://mytardis.googlecode.com/svn/trunk/ mytardis-read-only
You’ll need to make sure SVN tracks any new files you add using:
svn add path/to/new/file
Make the patch using:
svn diff > feature_name_or_bugfix.diff
and then add an issue to the issue tracker
Documentation is done in sphinx and can be built using the commands provided by the sphinx buildout recipe:
If DEBUG = True in settings.py, the documentation can be viewed through the local server, eg. runserver, under doclink.
This can be useful when writing new documentation or to look at documentation that is not yet available on readthedocs.
Hudson is a continuous intergration server that is used within the MyTARDIS development process to help maintain the quality of the project. Within Hudson we run use the following script to execute the build and run the tests.
#!/bin/bash rm dist/* [ -d egg-cache ] || mkdir -p egg-cache export PYTHON_EGG_CACHE=`pwd`/egg-cache python setup.py clean python bootstrap.py ./bin/buildout ./bin/django-admin.py test --with-xunit --with-coverage --cover-package=tardis.tardis_portal --with-xcoverage python setup.py sdist
Enable the Publish JUnit test result report in the Post-Build Actions section and use specify the nost tests results output:
To enable reporting of the code coverage you’ll need to install the Hudson Cobertura plugin, once that is installed you can specify the location of the coverage.xml file: