Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpmyadmin/phpmyadmin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichal Čihař <michal@cihar.com>2014-02-26 14:53:46 +0400
committerMichal Čihař <michal@cihar.com>2014-02-26 14:54:08 +0400
commit6e43046b0817df4f801f72ab6e0561cb4043d7cd (patch)
tree9cb8d1d0e1e0f8a2b27e96cfea0304ad4b1046d2 /build.xml
parent0aae267d0623c4a50515a969d82a84b1c25825bd (diff)
Allow to pass additional args to phpunit
Signed-off-by: Michal Čihař <michal@cihar.com>
Diffstat (limited to 'build.xml')
-rw-r--r--build.xml5
1 files changed, 3 insertions, 2 deletions
diff --git a/build.xml b/build.xml
index 7a0b38c066..f53e7a0b75 100644
--- a/build.xml
+++ b/build.xml
@@ -5,6 +5,7 @@
<property name="source_comma_sep" value="."/>
<property environment="env"/>
<property name="env.PHPUNIT_XML" value="phpunit.xml.dist"/>
+ <property name="env.PHPUNIT_ARGS" value=""/>
<target name="clean" description="Clean up and create artifact directories">
<delete dir="${basedir}/build/api"/>
@@ -22,13 +23,13 @@
<target name="phpunit" description="Run unit tests using PHPUnit and generates junit.xml and clover.xml">
<exec executable="phpunit" failonerror="true">
- <arg line="--configuration ${env.PHPUNIT_XML}"/>
+ <arg line="--configuration ${env.PHPUNIT_XML} ${env.PHPUNIT_ARGS}"/>
</exec>
</target>
<target name="phpunit-nocoverage" description="Run unit tests using PHPUnit and generates junit.xml">
<exec executable="phpunit" failonerror="true">
- <arg line="--configuration phpunit.xml.nocoverage"/>
+ <arg line="--configuration phpunit.xml.nocoverage ${env.PHPUNIT_ARGS}"/>
</exec>
</target>