1
0
mirror of synced 2024-12-05 03:06:05 +03:00

[2.0] Added more configuration options that optionally allow to generate PDepend and PHPMD reports and version them by svn revision

This commit is contained in:
beberlei 2010-02-07 10:04:17 +00:00
parent 4585c8fa2b
commit 1d7946b7d1
2 changed files with 14 additions and 1 deletions

View File

@ -7,4 +7,7 @@ report.dir=reports
log.archive.dir=logs
svn.path=/usr/bin/svn
test.phpunit_configuration_file=
test.phpunit_generate_coverage=0
test.phpunit_generate_coverage=0
test.pmd_reports=0
test.pdepend_exec=
test.phpmd_exec=

View File

@ -144,6 +144,16 @@
<tstamp/>
<svnlastrevision svnpath="${svn.path}" workingcopy="." propertyname="svn.lastrevision"/>
<copy file="${build.dir}/logs/testsuites.xml" tofile="${log.archive.dir}/${svn.lastrevision}/log.xml" overwrite="true"/>
<if><equals arg1="${test.pmd_reports}" arg2="1" />
<then>
<exec command="${test.pdepend_exec} --jdepend-xml=${build.dir}/logs/jdepend.xml ./lib/Doctrine" />
<exec command="${test.phpmd_exec} ./lib/Doctrine xml codesize --reportfile ${build.dir}/logs/phpmd.xml" />
<copy file="${build.dir}/logs/jdepend.xml" tofile="${log.archive.dir}/${svn.lastrevision}/jdepend.xml" overwrite="true"/>
<copy file="${build.dir}/logs/phpmd.xml" tofile="${log.archive.dir}/${svn.lastrevision}/phpmd.xml" overwrite="true"/>
</then>
</if>
</target>
<!--