Skip to content
This repository has been archived by the owner on Feb 12, 2021. It is now read-only.

Commit

Permalink
Added information about plotting phploc using the CSV output
Browse files Browse the repository at this point in the history
  • Loading branch information
christeredvartsen committed Jan 27, 2011
1 parent f4a4ca7 commit 20eb8ac
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 1 deletion.
13 changes: 12 additions & 1 deletion README.markdown
Expand Up @@ -18,6 +18,7 @@ You need to install the following plugins for Hudson:
* [Violations](http://wiki.hudson-ci.org/display/HUDSON/Violations) (for processing various logfiles)
* [xUnit](http://wiki.hudson-ci.org/display/HUDSON/xUnit+Plugin) (for processing PHPUnit logfiles in JUnit format)
* [Clover](http://wiki.hudson-ci.org/display/HUDSON/Clover+Plugin) (for processing PHPUnit code coverage xml output)
* [Plot](http://wiki.hudson-ci.org/display/HUDSON/Plot+Plugin) (for processing phploc CSV output)

You can install these plugins using the webfrontend http://SERVER/pluginManager/available or using the hudson-cli

Expand All @@ -32,6 +33,7 @@ Download: http://SERVER/jnlpJars/hudson-cli.jar and execute
java -jar hudson-cli.jar -s http://SERVER install-plugin violations
java -jar hudson-cli.jar -s http://SERVER install-plugin xunit
java -jar hudson-cli.jar -s http://SERVER install-plugin clover
java -jar hudson-cli.jar -s http://SERVER install-plugin plot


Required PHP Tools
Expand All @@ -46,6 +48,7 @@ Required PHP Tools
pear install pdepend/PHP_Depend-beta
pear install phpmd/PHP_PMD-alpha
pear install phpunit/phpcpd
pear install phpunit/phploc
pear install PHPDocumentor
pear install PHP_CodeSniffer
pear install --alldeps phpunit/PHP_CodeBrowser-alpha
Expand Down Expand Up @@ -73,14 +76,15 @@ For example, refer to the `build.xml` script of the [Object_Freezer](http://gith
<exec executable="phpunit" failonerror="true"/>
</target>

<!-- Run pdepend, phpmd, phpcpd, and phpcs in parallel -->
<!-- Run pdepend, phpmd, phpcpd, phpcs, phpdoc and phploc in parallel -->
<target name="parallelTasks">
<parallel>
<antcall target="pdepend"/>
<antcall target="phpmd"/>
<antcall target="phpcpd"/>
<antcall target="phpcs"/>
<antcall target="phpdoc"/>
<antcall target="phploc"/>
</parallel>
</target>

Expand All @@ -106,6 +110,13 @@ For example, refer to the `build.xml` script of the [Object_Freezer](http://gith
</exec>
</target>

<!-- Generate phploc.csv -->
<target name="phploc">
<exec executable="phploc">
<arg line="--log-csv ${basedir}/build/logs/phploc.csv Object" />
</exec>
</target>

<!-- Generate checkstyle.xml -->
<target name="phpcs">
<exec executable="phpcs" output="/dev/null">
Expand Down
25 changes: 25 additions & 0 deletions config.xml
Expand Up @@ -61,6 +61,31 @@
<highThreshold>0</highThreshold>
<normalThreshold>0</normalThreshold>
</hudson.plugins.dry.DryPublisher>
<hudson.plugins.plot.PlotPublisher>
<plots>
<hudson.plugins.plot.Plot>
<title>phploc</title>
<yaxis></yaxis>
<series>
<hudson.plugins.plot.CSVSeries>
<file>build/logs/phploc.csv</file>
<label></label>
<fileType>csv</fileType>
<inclusionFlag>OFF</inclusionFlag>
<exclusionValues></exclusionValues>
<url></url>
<displayTableFlag>false</displayTableFlag>
</hudson.plugins.plot.CSVSeries>
</series>
<group>phploc</group>
<numBuilds>10</numBuilds>
<csvFileName>123.csv</csvFileName>
<csvLastModification>0</csvLastModification>
<style>line</style>
<useDescr>false</useDescr>
</hudson.plugins.plot.Plot>
</plots>
</hudson.plugins.plot.PlotPublisher>
<com.thalesgroup.hudson.plugins.xunit.XUnitPublisher>
<types>
<com.thalesgroup.hudson.plugins.xunit.types.PHPUnitType>
Expand Down

0 comments on commit 20eb8ac

Please sign in to comment.