Skip to content
Snippets Groups Projects
Commit 9634702c authored by Martin Czygan's avatar Martin Czygan
Browse files

Introduce composerdir variable in build.xml.

parent 6f5106d8
No related merge requests found
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
<property name="package" value="${phing.project.name}" override="true" /> <property name="package" value="${phing.project.name}" override="true" />
<property name="builddir" value="${tmp}/build/${phing.project.name}" override="true" /> <property name="builddir" value="${tmp}/build/${phing.project.name}" override="true" />
<property name="srcdir" value="${project.basedir}" override="true" /> <property name="srcdir" value="${project.basedir}" override="true" />
<property name="composerdir" value="${srcdir}/vendor/bin" />
<property name="apacheconfdir" value="/etc/apache2/conf.d" /> <property name="apacheconfdir" value="/etc/apache2/conf.d" />
<property name="apachectl" value="/etc/init.d/apache2" /> <property name="apachectl" value="/etc/init.d/apache2" />
<property name="vufindurl" value="http://localhost/vufind" /> <property name="vufindurl" value="http://localhost/vufind" />
...@@ -57,27 +58,27 @@ ...@@ -57,27 +58,27 @@
<!-- Report rule violations with PHPMD (mess detector) --> <!-- Report rule violations with PHPMD (mess detector) -->
<target name="phpmd"> <target name="phpmd">
<exec command="phpmd ${srcdir}/module xml ${srcdir}/tests/phpmd.xml --exclude ${srcdir}/module/VuFind/tests,${srcdir}/module/VuFindSearch/tests --reportfile ${builddir}/reports/phpmd.xml" /> <exec command="${composerdir}/phpmd ${srcdir}/module xml ${srcdir}/tests/phpmd.xml --exclude ${srcdir}/module/VuFind/tests,${srcdir}/module/VuDL/tests,${srcdir}/module/VuFindSearch/tests --reportfile ${builddir}/reports/phpmd.xml" />
</target> </target>
<!-- Measure project with phploc --> <!-- Measure project with phploc -->
<target name="phploc"> <target name="phploc">
<exec command="phploc --log-csv ${builddir}/reports/phploc.csv ${srcdir}/module" /> <exec command="${composerdir}/phploc --log-csv ${builddir}/reports/phploc.csv ${srcdir}/module" />
</target> </target>
<!-- PHP_Depend code analysis --> <!-- PHP_Depend code analysis -->
<target name="pdepend"> <target name="pdepend">
<exec command="pdepend --jdepend-xml=${builddir}/reports/jdepend.xml --jdepend-chart=${builddir}/reports/dependencies.svg --overview-pyramid=${builddir}/reports/pdepend-pyramid.svg ${srcdir}/module" /> <exec command="${composerdir}/pdepend --jdepend-xml=${builddir}/reports/jdepend.xml --jdepend-chart=${builddir}/reports/dependencies.svg --overview-pyramid=${builddir}/reports/pdepend-pyramid.svg ${srcdir}/module" />
</target> </target>
<!-- PHP copy-and-paste detection --> <!-- PHP copy-and-paste detection -->
<target name="phpcpd"> <target name="phpcpd">
<exec command="phpcpd --log-pmd ${builddir}/reports/pmd-cpd.xml --exclude tests ${srcdir}/module" /> <exec command="${composerdir}/phpcpd --log-pmd ${builddir}/reports/pmd-cpd.xml --exclude tests ${srcdir}/module" />
</target> </target>
<!-- PHP CodeSniffer --> <!-- PHP CodeSniffer -->
<target name="phpcs"> <target name="phpcs">
<exec command="phpcs --standard=PEAR --ignore=*/config/*,*/tests/* --extensions=php --report=checkstyle ${srcdir}/module &gt; ${builddir}/reports/checkstyle.xml" escape="false" /> <exec command="${composerdir}/phpcs --standard=PEAR --ignore=*/config/*,*/tests/* --extensions=php --report=checkstyle ${srcdir}/module &gt; ${builddir}/reports/checkstyle.xml" escape="false" />
</target> </target>
<!-- PHP API Documentation --> <!-- PHP API Documentation -->
......
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