Fix: test alternative target
This commit is contained in:
parent
6de7f627c2
commit
54681e9195
16
build.xml
16
build.xml
@ -10,7 +10,7 @@
|
|||||||
<mkdir dir="${basedir}/hudson/coverage"/>
|
<mkdir dir="${basedir}/hudson/coverage"/>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<!-- Run pdepend, phpmd, phpcpd, phpcs, phpdoc and phploc in parallel -->
|
<!-- Run phpmd, phpcpd, phpcs, doxygen and phploc in parallel -->
|
||||||
<target name="parallelTasks">
|
<target name="parallelTasks">
|
||||||
<parallel>
|
<parallel>
|
||||||
<antcall target="phpmd"/>
|
<antcall target="phpmd"/>
|
||||||
@ -70,11 +70,23 @@
|
|||||||
</target>
|
</target>
|
||||||
|
|
||||||
<!-- Run unit tests and generate junit.xml and clover.xml -->
|
<!-- Run unit tests and generate junit.xml and clover.xml -->
|
||||||
|
<target name="phpunit">
|
||||||
|
<exec command="phpunit
|
||||||
|
--log-xml ${basedir}/hudson/phpunit.xml
|
||||||
|
--log-pmd ${basedir}/hudson/phpunit.pmd.xml
|
||||||
|
--coverage-clover ${basedir}/hudson/coverage/clover.xml
|
||||||
|
--coverage-html ${basedir}/hudson/coverage/
|
||||||
|
test/phpunit/AllTests.php
|
||||||
|
"/>
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<!-- remove for test
|
||||||
<target name="phpunit">
|
<target name="phpunit">
|
||||||
<exec dir="${basedir}" executable="phpunit" failonerror="true">
|
<exec dir="${basedir}" executable="phpunit" failonerror="true">
|
||||||
<arg line="--configuration test/phpunit/hudson-phpunit.xml" />
|
<arg line="\-\-configuration test/phpunit/hudson-phpunit.xml" />
|
||||||
</exec>
|
</exec>
|
||||||
</target>
|
</target>
|
||||||
|
-->
|
||||||
|
|
||||||
<target name="hudson" depends="clean,parallelTasks,phpunit"/>
|
<target name="hudson" depends="clean,parallelTasks,phpunit"/>
|
||||||
</project>
|
</project>
|
||||||
Loading…
Reference in New Issue
Block a user