Skip to content

Commit 2881b9e

Browse files
jrfnlgrogy
authored andcommitted
Ant: fail the build on unit test failures
1 parent b7a2e22 commit 2881b9e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

build.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
<target name="phpunit" depends="prepare" description="PHP unit">
6565
<delete file="${basedir}/build/logs/phpunit.xml" quiet="true" />
6666

67-
<exec executable="${phpunit}">
67+
<exec executable="${phpunit}" failonerror="true">
6868
<arg line='--configuration ${basedir}/phpunit.xml.dist' />
6969
<arg line='-d memory_limit=256M' />
7070
<arg line='--log-junit "${basedir}/build/logs/phpunit.xml"' />
@@ -78,7 +78,7 @@
7878
<delete dir="${basedir}/build/coverage" quiet="true" />
7979
<mkdir dir="${basedir}/build/coverage" />
8080

81-
<exec executable="${phpunit}">
81+
<exec executable="${phpunit}" failonerror="true">
8282
<arg line='--configuration ${basedir}/phpunit.xml.dist' />
8383
<arg line='-d memory_limit=256M' />
8484
<arg line='--log-junit "${basedir}/build/logs/phpunit.xml"' />

0 commit comments

Comments
 (0)