forked from stojg/crop
-
Notifications
You must be signed in to change notification settings - Fork 10
/
build.xml
28 lines (24 loc) · 851 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
25
26
27
28
<?xml version="1.0" encoding="UTF-8"?>
<!--
# phing installation
sudo pear channel-discover pear.phing.info
sudo pear install phing/phing
-->
<project name="stojg/crop" default="dist" basedir="." phingVersion="2.4.12">
<target name="dist" depends="phpcs, docgen">
<echo message="Build done" />
</target>
<target name="phpcs" description="Run PHP codesniffer with the PSR2 standard">
<echo message="Running PHP Codesniffer" />
<exec executable="phpcs" logoutput="true" checkreturn="true">
<arg line="--standard=PSR2 --tab-width=4 ./src" />
</exec>
</target>
<target name="docgen" description="Regenerate the API documentation">
<echo message="Regenerating the API documentation" />
<exec executable="phpdoc" logoutput="true" checkreturn="true">
<arg line="-d ." />
<arg line="-t docs" />
</exec>
</target>
</project>