forked from vend/php-resque
-
Notifications
You must be signed in to change notification settings - Fork 4
/
build.xml
70 lines (58 loc) · 3.08 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
<project name="php-resque" default="build">
<property file="build.properties" />
<target name="clean">
<delete dir="${basedir}/build" />
</target>
<target name="prepare">
<mkdir dir="${basedir}/build" />
</target>
<target name="composer">
<exec dir="${basedir}" executable="${composer}" failonerror="true">
<arg line="install" />
</exec>
</target>
<target name="phpunit">
<exec dir="${basedir}" executable="vendor/bin/phpunit" failonerror="true">
<arg value="--log-junit" />
<arg value="${basedir}/build/logs/phpunit.xml" />
<arg value="--coverage-clover" />
<arg value="${basedir}/build/logs/clover.xml" />
<arg value="--coverage-html" />
<arg value="${basedir}/build/coverage" />
</exec>
</target>
<target name="build" depends="clean,prepare,composer,phpunit" />
<target name="phpredis" depends="prepare">
<get src="https://github.com/nicolasff/phpredis/archive/master.zip" dest="${basedir}/build/phpredis.zip" verbose="true" />
<unzip src="${basedir}/build/phpredis.zip" dest="${basedir}/build" />
<exec dir="${basedir}/build/phpredis-master" executable="phpize" searchpath="true" failonerror="true" />
<exec dir="${basedir}/build/phpredis-master" executable="./configure" failonerror="true" />
<exec dir="${basedir}/build/phpredis-master" executable="make" failonerror="true" />
<exec dir="${basedir}/build/phpredis-master" executable="make" failonerror="true">
<arg value="install" />
</exec>
</target>
<target name="phpiredis" depends="prepare,hiredis">
<get src="https://github.com/nrk/phpiredis/archive/master.zip" usetimestamp="true" dest="${basedir}/build/phpiredis.zip" verbose="true" />
<unzip src="${basedir}/build/phpiredis.zip" dest="${basedir}/build" />
<exec dir="${basedir}/build/phpiredis-master" executable="phpize" searchpath="true" failonerror="true" />
<exec dir="${basedir}/build/phpiredis-master" executable="./configure" failonerror="true">
<arg value="--enable-phpiredis" />
<arg value="--with-hiredis-dir=../hiredis-master" />
</exec>
<exec dir="${basedir}/build/phpiredis-master" executable="make" failonerror="true" />
<exec dir="${basedir}/build/phpiredis-master" executable="make" failonerror="true">
<env key="PREFIX" value="." />
<arg value="install" />
</exec>
</target>
<target name="hiredis" depends="prepare">
<get src="https://github.com/redis/hiredis/archive/master.zip" usetimestamp="true" dest="${basedir}/build/hiredis.zip" verbose="true" />
<unzip src="${basedir}/build/hiredis.zip" dest="${basedir}/build" />
<exec dir="${basedir}/build/hiredis-master" executable="make" failonerror="true" />
<exec dir="${basedir}/build/hiredis-master" executable="make" failonerror="true">
<env key="PREFIX" value="."/>
<arg value="install" />
</exec>
</target>
</project>