Build newversion only when tests are okay

This commit is contained in:
Jindra Petřík
2015-04-23 22:27:49 +02:00
parent 2afe65d579
commit 5c0d704a2c

View File

@@ -71,7 +71,16 @@
</javac>
</target>
<target name="test" depends="compile,compile-tests">
<target name="-test-sethalt" depends="">
<property name="TESTHALT" value="true" />
</target>
<target name="-test-setnohalt" unless="TESTHALT">
<property name="TESTHALT" value="false" />
</target>
<target name="testhalt" depends="-test-sethalt,test">
</target>
<target name="test" depends="-test-setnohalt,compile,compile-tests">
<delete dir="${TESTRESULTSDIR}"/>
<mkdir dir="${TESTRESULTSDIR}"/>
<mkdir dir="${TESTRESULTSDIR}/raw/"/>
@@ -83,7 +92,7 @@
<testng
outputDir="${TESTRESULTSDIR}"
haltOnFailure="false" verbose="2" workingDir="${basedir}" >
haltOnFailure="${TESTHALT}" verbose="2" workingDir="${basedir}" >
<classpath>
<pathelement path="${COMPILETESTSDIR}"/>