Skip to content
Newer
Older
100644 51 lines (43 sloc) 1.61 KB
94dd0b9 @CloCkWeRX Updated build
CloCkWeRX authored Dec 11, 2011
1 <?xml version="1.0"?>
2 <project name="Image_Barcode2" default="build" basedir=".">
3 <condition property="phpunit.bin" value="phpunit.bat" else="phpunit">
4 <os family="windows"/>
5 </condition>
6
7 <condition property="pear.bin" value="pear.bat" else="pear">
8 <os family="windows"/>
9 </condition>
10
11 <target name="clean" description="Clean up and create artifact directories">
12 <delete dir="${basedir}/lib" />
13 <delete dir="${basedir}/build/api"/>
14 <delete dir="${basedir}/build/code-browser"/>
15 <delete dir="${basedir}/build/coverage"/>
16 <delete dir="${basedir}/build/logs"/>
17 <delete dir="${basedir}/build/pdepend"/>
18 <delete dir="${basedir}/build"/>
19
20 <mkdir dir="${basedir}/lib/" />
21 <mkdir dir="${basedir}/build"/>
22 <mkdir dir="${basedir}/build/api"/>
23 <mkdir dir="${basedir}/build/code-browser"/>
24 <mkdir dir="${basedir}/build/coverage"/>
25 <mkdir dir="${basedir}/build/logs"/>
26 <mkdir dir="${basedir}/build/pdepend"/>
27 </target>
28
29 <target name="phpcs-ci" description="Find coding standard violations using PHP_CodeSniffer">
30 <exec executable="phpcs" output="/dev/null">
31 <arg value="--report=checkstyle" />
32 <arg value="--report-file=${basedir}/build/logs/checkstyle.xml" />
33 <arg path="${basedir}/Image" />
34 </exec>
35 </target>
36
37 <target name="phpunit">
38 <exec dir="${basedir}" executable="${phpunit.bin}" failonerror="true">
39 <arg line="."/>
40 </exec>
41 </target>
42
43 <target name="package">
44 <exec dir="${basedir}/build" executable="${pear.bin}" failonerror="true">
45 <arg line="package ../package.xml"/>
46 </exec>
47 </target>
48
49 <target name="build" depends="clean,phpunit,phpcs-ci,package"/>
50 </project>
Something went wrong with that request. Please try again.