Source

pycabehtml / INSTALL

Full commit
Installation
============

You need matplotlib and numpy. It should be managed by your OS package manager.
Then, just untar and run. If you want to install system wide, just pip install
or python setup.py install.

This is a parser for pymetrics output available in Ubuntu/Debian:

apt-get install pymetrics

Jenkins CI setup
================

You'll need the Html plugin for that.
Create a bash script build step. An example could be:

#################################################################
WS=$WORKSPACE
ACC=$WS/../complexity_acc.txt
GRAPH=$WS/complexity/output.png
mkdir -p $WS/complexity
cd $WS
pymetrics `find sourcecodepath -iname "*.py"` > $WS/complexity/complexity.txt
pycabehtml -i $WS/complexity/complexity.txt -o $WS/complexity/metrics.html -a $ACC -g $GRAPH 
#################################################################

Then, in the HTML report section:

#################################################################
Click on "Publish HTML reports"
HTML directory to archive: complexity
index page(s): metrics.html
Report title: Code Complexity
#################################################################