diff options
author | Michal Čihař <mcihar@suse.cz> | 2013-06-12 12:41:49 +0400 |
---|---|---|
committer | Michal Čihař <mcihar@suse.cz> | 2013-06-12 12:46:38 +0400 |
commit | 23141a05bdaddacbb1e4c5878b39cd0c971c38af (patch) | |
tree | cdee1776c622a06dfef04372094da5d96c383a18 /build.xml | |
parent | e7069f86f8a241624be3c606c003b3f952ea169f (diff) |
Add PHP lint to build.xml
Diffstat (limited to 'build.xml')
-rw-r--r-- | build.xml | 13 |
1 files changed, 12 insertions, 1 deletions
@@ -115,5 +115,16 @@ </exec> </target> - <target name="build" depends="clean,phpunit,pdepend,phpmd,phpcpd,phpcs,phpdoc,phploc,phpcb"/> + <target name="lint" description="Perform syntax check of sourcecode files"> + <apply executable="php" failonerror="true"> + <arg value="-l" /> + + <fileset dir="${basedir}"> + <include name="**/*.php" /> + <modified /> + </fileset> + </apply> + </target> + + <target name="build" depends="clean,phpunit,pdepend,phpmd,phpcpd,phpcs,phpdoc,phploc,phpcb,lint,jshint"/> </project> |