Skip to content
Snippets Groups Projects
Commit b0c77a61 authored by Demian Katz's avatar Demian Katz
Browse files

Enable/disable NODE_PATH through build.xml.

parent d7c0ed12
No related merge requests found
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
<property name="srcdir" value="${project.basedir}" override="true" /> <property name="srcdir" value="${project.basedir}" override="true" />
<property name="apacheconfdir" value="/etc/apache2/conf.d" /> <property name="apacheconfdir" value="/etc/apache2/conf.d" />
<property name="apachectl" value="false" /><!-- set to apachectl path to spin up Apache instance --> <property name="apachectl" value="false" /><!-- set to apachectl path to spin up Apache instance -->
<property name="nodepath" value="" /><!-- set to node.js modules path to use Zombie.js testing -->
<property name="vufindurl" value="http://localhost/vufind" /> <property name="vufindurl" value="http://localhost/vufind" />
<property name="vufinddb" value="vufind_test" /> <property name="vufinddb" value="vufind_test" />
<property name="vufinddbuser" value="vufindtest" /> <property name="vufinddbuser" value="vufindtest" />
...@@ -88,12 +89,12 @@ ...@@ -88,12 +89,12 @@
<!-- PHPUnit --> <!-- PHPUnit -->
<target name="phpunit" description="Run tests"> <target name="phpunit" description="Run tests">
<exec dir="${srcdir}/module/VuFind/tests" command="VUFIND_LOCAL_DIR=${srcdir}/local phpunit -dzend.enable_gc=0 --log-junit ${builddir}/reports/phpunit.xml --coverage-clover ${builddir}/reports/coverage/clover.xml --coverage-html ${builddir}/reports/coverage/" passthru="true" checkreturn="true" /> <exec dir="${srcdir}/module/VuFind/tests" command="NODE_PATH=${nodepath} VUFIND_LOCAL_DIR=${srcdir}/local phpunit -dzend.enable_gc=0 --log-junit ${builddir}/reports/phpunit.xml --coverage-clover ${builddir}/reports/coverage/clover.xml --coverage-html ${builddir}/reports/coverage/" passthru="true" checkreturn="true" />
</target> </target>
<!-- PHPUnit without logging output --> <!-- PHPUnit without logging output -->
<target name="phpunitfast" description="Run tests"> <target name="phpunitfast" description="Run tests">
<exec dir="${srcdir}/module/VuFind/tests" command="VUFIND_LOCAL_DIR=${srcdir}/local phpunit -dzend.enable_gc=0" passthru="true" checkreturn="true" /> <exec dir="${srcdir}/module/VuFind/tests" command="NODE_PATH=${nodepath} VUFIND_LOCAL_DIR=${srcdir}/local phpunit -dzend.enable_gc=0" passthru="true" checkreturn="true" />
</target> </target>
<!-- Install and Activate VuFind --> <!-- Install and Activate VuFind -->
......
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