-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
31 lines (29 loc) · 1.22 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
<?xml version="1.0" encoding="UTF-8"?>
<project name="Queue" default="build">
<target name="build">
<phingcall target="lint-php" />
<phingcall target="phpunit" />
</target>
<target name="phpunit">
<exec executable="${project.basedir}/vendor/bin/phpunit" passthru="true" output="/dev/stdout" error="/dev/stderr" logoutput="/dev/stdout" level="debug" checkreturn="true">
<arg value="--debug" />
<arg value="--verbose" />
</exec>
</target>
<target name="phpunit-coverage">
<mkdir dir="${project.basedir}/docs/coverage" />
<exec executable="${project.basedir}/vendor/bin/phpunit" passthru="true" output="/dev/stdout" error="/dev/stderr" logoutput="/dev/stdout" level="debug" checkreturn="true">
<arg value="--debug" />
<arg value="--verbose" />
<arg value="--coverage-html" />
<arg path="${project.basedir}/docs/coverage" />
</exec>
</target>
<target name="lint-php">
<phplint cachefile="${project.basedir}/.phplint.cache" deprecatedAsError="true">
<fileset dir="src/">
<include name="**/*.php"/>
</fileset>
</phplint>
</target>
</project>