Add phpcs to build.xml

This commit is contained in:
BitWasp 2014-11-27 03:22:48 +00:00
parent 27d40ad973
commit ab02516369

View File

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<project name="bitpay/package" default="build">
<target name="build" depends="lint,phpunit" />
<target name="build" depends="lint,phpunit,phpcs" />
<target name="lint"
description="Check the syntax of PHP files">
@ -22,6 +22,11 @@
</exec>
</target>
<target name="phpcs">
<exec command="${project.basedir}/bin/phpcs ./src --standard=PSR1,PSR2 -n" passthru="true">
</exec>
</target>
<target name="build:docs" description="Build user documentation">
<exec executable="make" passthru="true" dir="${project.basedir}/docs">
<arg value="html" />