Commit 1d7946b7 authored by beberlei's avatar beberlei

[2.0] Added more configuration options that optionally allow to generate...

[2.0] Added more configuration options that optionally allow to generate PDepend and PHPMD reports and version them by svn revision
parent 4585c8fa
...@@ -8,3 +8,6 @@ log.archive.dir=logs ...@@ -8,3 +8,6 @@ log.archive.dir=logs
svn.path=/usr/bin/svn svn.path=/usr/bin/svn
test.phpunit_configuration_file= test.phpunit_configuration_file=
test.phpunit_generate_coverage=0 test.phpunit_generate_coverage=0
test.pmd_reports=0
test.pdepend_exec=
test.phpmd_exec=
\ No newline at end of file
...@@ -144,6 +144,16 @@ ...@@ -144,6 +144,16 @@
<tstamp/> <tstamp/>
<svnlastrevision svnpath="${svn.path}" workingcopy="." propertyname="svn.lastrevision"/> <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"/> <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> </target>
<!-- <!--
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment