Permalink
Browse files

NEW Added "phing phpunit" target

  • Loading branch information...
1 parent 04ce08b commit e07ae2041acfec3a3c223975d5f6cd9b7033b2d3 @chillu chillu committed Nov 15, 2012
Showing with 14 additions and 0 deletions.
  1. +14 −0 build.xml
View
@@ -119,6 +119,20 @@ Options:
=================================================================
-->
+ <target name="phpunit"
+ description="Runs unit tests as defined through phpunix.xml. Requires the 'phpunit' binary.">
+ <if>
+ <available file="${basedir}/vendor/bin/phpunit" />
+ <then>
+ <property name="phpunit_bin" value="vendor/bin/phpunit" />
+ </then>
+ <else>
+ <property name="phpunit_bin" value="phpunit" />
+ </else>
+ </if>
+ <exec command="${phpunit_bin}" checkreturn="true" passthru="true" />
+ </target>
+
<target name="tag" if="basedir"
description="Creates a new git tag in all the nested working copies (optionally pushes the created tag)"
depends="_gitRepositories,_gitBinary">

0 comments on commit e07ae20

Please sign in to comment.