-
Notifications
You must be signed in to change notification settings - Fork 20
/
build.xml
45 lines (38 loc) · 1.43 KB
/
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<?xml version="1.0"?>
<project name="Net_Wifi" default="build" basedir=".">
<condition property="phpunit.bin" value="phpunit.bat" else="phpunit">
<os family="windows"/>
</condition>
<condition property="pear.bin" value="pear.bat" else="pear">
<os family="windows"/>
</condition>
<target name="clean" description="Clean up and create artifact directories">
<delete dir="${basedir}/lib" />
<delete dir="${basedir}/build/api"/>
<delete dir="${basedir}/build/code-browser"/>
<delete dir="${basedir}/build/coverage"/>
<delete dir="${basedir}/build/logs"/>
<delete dir="${basedir}/build/pdepend"/>
<delete dir="${basedir}/build"/>
<mkdir dir="${basedir}/build"/>
<mkdir dir="${basedir}/build/api"/>
<mkdir dir="${basedir}/build/code-browser"/>
<mkdir dir="${basedir}/build/coverage"/>
<mkdir dir="${basedir}/build/logs"/>
<mkdir dir="${basedir}/build/pdepend"/>
<exec dir="${basedir}" executable="svn">
<arg line="export https://svn.php.net/repository/pear/packages/Stream_Var/trunk lib/" />
</exec>
</target>
<target name="phpunit">
<exec dir="${basedir}" executable="${phpunit.bin}" failonerror="true">
<arg line="."/>
</exec>
</target>
<target name="package">
<exec dir="${basedir}/build" executable="${pear.bin}" failonerror="true">
<arg line="package ../package.xml"/>
</exec>
</target>
<target name="build" depends="clean,phpunit,package"/>
</project>