-
Notifications
You must be signed in to change notification settings - Fork 111
/
build.xml
24 lines (21 loc) · 981 Bytes
/
build.xml
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>