forked from youzan/php-nsq-client
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.xml
44 lines (38 loc) · 1.3 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
<?xml version="1.0" encoding="UTF-8"?>
<project name="kdt-lib/queue" default="build">
<target name="build"
depends="prepare,phpunit"
description=""/>
<target name="build-parallel"
depends="prepare,phpunit"
description=""/>
<target name="clean"
unless="clean.done"
description="Cleanup build artifacts">
<delete dir="${basedir}/build/logs"/>
<property name="clean.done" value="true"/>
</target>
<target name="prepare"
unless="prepare.done"
depends="clean"
description="Prepare for build">
<mkdir dir="${basedir}/build/logs"/>
<property name="prepare.done" value="true"/>
</target>
<target name="composer-update"
unless="composer-update.done">
<exec executable="composer">
<arg value="update"/>
</exec>
<property name="composer-update.done" value="true"/>
</target>
<target name="phpunit"
depends="composer-update"
description="Run unit tests with PHPUnit">
<exec executable="${basedir}/vendor/bin/phpunit" failonerror="true">
<arg value="tests"/>
<arg value="--repeat"/>
<arg value="100"/>
</exec>
</target>
</project>