Commit 92801ba8 authored by romanb's avatar romanb

[2.0] Fixed some build issues. Added new build properties. Please install...

[2.0] Fixed some build issues. Added new build properties. Please install VersionControl_SVN pear package in order to use the test target of the build file.
parent 3d3bcc17
...@@ -4,3 +4,5 @@ stability=alpha ...@@ -4,3 +4,5 @@ stability=alpha
build.dir=build build.dir=build
dist.dir=dist dist.dir=dist
report.dir=reports report.dir=reports
log.archive.dir=logs
svn.path=/usr/bin/svn
\ No newline at end of file
...@@ -121,7 +121,6 @@ ...@@ -121,7 +121,6 @@
Runs the full test suite. Runs the full test suite.
--> -->
<target name="test" depends="prepare"> <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">
...@@ -131,7 +130,9 @@ ...@@ -131,7 +130,9 @@
</batchtest> </batchtest>
</phpunit> </phpunit>
<phpunitreport infile="${build.dir}/logs/testsuites.xml" format="frames" todir="${report.dir}/tests" /> <phpunitreport infile="${build.dir}/logs/testsuites.xml" format="frames" todir="${report.dir}/tests" />
--> <tstamp/>
<svnlastrevision svnpath="${svn.path}" workingcopy="." propertyname="svn.lastrevision"/>
<copy file="${build.dir}/logs/testsuites.xml" tofile="${log.archive.dir}/${svn.lastrevision}/log.xml" overwrite="true"/>
</target> </target>
<!-- <!--
......
...@@ -14,7 +14,8 @@ $classLoader = new \Doctrine\Common\IsolatedClassLoader('Doctrine'); ...@@ -14,7 +14,8 @@ $classLoader = new \Doctrine\Common\IsolatedClassLoader('Doctrine');
$classLoader->register(); $classLoader->register();
set_include_path( set_include_path(
'.' __DIR__ . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . 'lib'
. PATH_SEPARATOR . __DIR__ . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . 'lib' . PATH_SEPARATOR .
get_include_path()
); );
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