blob: 0ad8539a70258b8e08283a03ff1a23497574eab4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
<?xml version="1.0" encoding="UTF-8"?>
<project name="php-terminal-gameboy-emulator" default="build">
<property name="vendordir" value="${basedir}/bin" />
<target name="check" depends="lint,phpcs"/>
<target name="lint" description="Perform syntax check of sourcecode files">
<apply executable="php" failonerror="true">
<arg value="-l" />
<fileset dir="${basedir}/src">
<include name="**/*.php" />
<modified />
</fileset>
</apply>
</target>
<target name="phpcs" description="Find coding standard violations using PHP_CodeSniffer and print human readable output. Intended for usage on the command line before committing.">
<exec executable="${vendordir}/phpcs" failonerror="true">
<arg value="--extensions=php" />
<arg value="--standard=${basedir}/phpcs.xml" />
<arg path="${basedir}/src" />
</exec>
</target>
</project>
|