-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.xml
34 lines (29 loc) · 1.11 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
<?xml version="1.0" encoding="UTF-8"?>
<project name="dflydev-util-antPathMatcher" basedir="." default="main">
<property file="build.properties" />
<property name="paths.build" value="${project.basedir}/build" />
<property name="paths.tests" value="${project.basedir}/tests" />
<property name="paths.logs" value="${paths.build}/logs" />
<property name="paths.reports" value="${paths.build}/reports" />
<target name="main" />
<target name="test">
<mkdir dir="${paths.logs}" />
<mkdir dir="${paths.reports}/coverage" />
<property name="coverage.database" value="${paths.logs}/coverage.db" />
<coverage-setup database="${coverage.database}">
<fileset dir="src">
<include name="**/*.php" />
</fileset>
</coverage-setup>
<phpunit printsummary="true" codecoverage="true" bootstrap="tests/bootstrap.php">
<formatter todir="${paths.logs}" type="xml" />
<formatter todir="${paths.reports}/coverage" type="clover" />
<batchtest>
<fileset dir="${paths.tests}">
<include name="**/Test.php" />
<exclude name="**/Abstract*" />
</fileset>
</batchtest>
</phpunit>
</target>
</project>