Commit 691aa923 authored by romanb's avatar romanb

[2.0] Small build.xml changes to fix test report generation.

parent fd204ee7
...@@ -66,6 +66,8 @@ ...@@ -66,6 +66,8 @@
<mkdir dir="${dist.dir}" /> <mkdir dir="${dist.dir}" />
<echo msg="Creating report directory: ${report.dir}" /> <echo msg="Creating report directory: ${report.dir}" />
<mkdir dir="${report.dir}" /> <mkdir dir="${report.dir}" />
<mkdir dir="${build.dir}/logs"/>
<mkdir dir="${report.dir}/tests"/>
</target> </target>
<target name="build-common"> <target name="build-common">
...@@ -86,7 +88,7 @@ ...@@ -86,7 +88,7 @@
<!-- <!--
Builds all packages, preparing them for distribution. Builds all packages, preparing them for distribution.
--> -->
<target name="build-orm" depends="prepare, build-common, build-dbal"> <target name="build-orm" depends="test, build-common, build-dbal">
<copy todir="${build.dir}/orm"> <copy todir="${build.dir}/orm">
<fileset refid="shared-artifacts"/> <fileset refid="shared-artifacts"/>
<fileset refid="common-sources"/> <fileset refid="common-sources"/>
...@@ -98,15 +100,10 @@ ...@@ -98,15 +100,10 @@
<target name="build" depends="test, build-orm"/> <target name="build" depends="test, build-orm"/>
<target name="prepare-test">
<mkdir dir="${build.dir}/logs"/>
<mkdir dir="${report.dir}/tests"/>
</target>
<!-- <!--
Runs the full test suite. Runs the full test suite.
--> -->
<target name="test" depends="prepare-test"> <target name="test" depends="prepare">
<phpunit printsummary="true" haltonfailure="true"> <phpunit printsummary="true" haltonfailure="true">
<formatter todir="${build.dir}/logs" type="xml"/> <formatter todir="${build.dir}/logs" type="xml"/>
<batchtest classpath="tests"> <batchtest classpath="tests">
...@@ -115,10 +112,13 @@ ...@@ -115,10 +112,13 @@
</fileset> </fileset>
</batchtest> </batchtest>
</phpunit> </phpunit>
<phpunitreport infile="build/logs/testsuites.xml" format="frames" todir="reports/tests" /> <phpunitreport infile="${build.dir}/logs/testsuites.xml" format="frames" todir="${report.dir}/tests" />
</target> </target>
<target name="build-tar-packages" depends="test, build-orm"> <!--
Builds regular distributable packages (without PEAR package.xml).
-->
<target name="build-tar-packages" depends="build-orm">
<tar destfile="${dist.dir}/DoctrineCommon-${version_name}.tar.gz" compression="gzip"> <tar destfile="${dist.dir}/DoctrineCommon-${version_name}.tar.gz" compression="gzip">
<fileset dir="${build.dir}/common"> <fileset dir="${build.dir}/common">
<include name="**" /> <include name="**" />
...@@ -136,7 +136,10 @@ ...@@ -136,7 +136,10 @@
</tar> </tar>
</target> </target>
<target name="build-pear-packages" depends="test, build-orm"> <!--
Builds distributable PEAR packages.
-->
<target name="build-pear-packages" depends="build-orm">
<d51pearpkg2 baseinstalldir="Doctrine" dir="${build.dir}/orm"> <d51pearpkg2 baseinstalldir="Doctrine" dir="${build.dir}/orm">
<name>${name}</name> <name>${name}</name>
<summary>${summary}</summary> <summary>${summary}</summary>
...@@ -160,5 +163,8 @@ ...@@ -160,5 +163,8 @@
<tar destfile="${dist.dir}/DoctrineORM-${version_name}.tgz" basedir="${build.dir}/orm" compression="gzip" /> <tar destfile="${dist.dir}/DoctrineORM-${version_name}.tgz" basedir="${build.dir}/orm" compression="gzip" />
</target> </target>
<target name="build-packages" depends="test, build-pear-packages, build-tar-packages"/> <!--
Builds both PEAR packages as well as normal packages (without package.xml).
-->
<target name="build-packages" depends="build-pear-packages, build-tar-packages"/>
</project> </project>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment