Skip to content

Commit

Permalink
NEW Added "phing phpunit" target
Browse files Browse the repository at this point in the history
  • Loading branch information
chillu committed Nov 15, 2012
1 parent 04ce08b commit e07ae20
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions build.xml
Expand Up @@ -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">
Expand Down

0 comments on commit e07ae20

Please sign in to comment.