-
Notifications
You must be signed in to change notification settings - Fork 5
/
build.xml
35 lines (35 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
32
33
34
35
<project name="GPIO" default="test">
<target name="test">
<phpunit haltonfailure="true" printsummary="true">
<batchtest>
<fileset dir="tests">
<include name="*Test.php"/>
</fileset>
</batchtest>
</phpunit>
</target>
<target name="report">
<delete dir="build"/>
<mkdir dir="build/tests"/>
<mkdir dir="build/coverage"/>
<coverage-setup database="build/coverage.db">
<fileset dir="src">
<include name="**/*.php"/>
<exclude name="**/*Test.php"/>
</fileset>
</coverage-setup>
<phpunit codecoverage="true">
<formatter type="xml" todir="build"/>
<batchtest>
<fileset dir="src">
<include name="**/*Test.php"/>
</fileset>
</batchtest>
</phpunit>
<phpunitreport infile="reports/testsuites.xml"
format="frames" todir="reports/tests" pharlocation="vendor/bin/phpunit"/>
<coverage-report outfile="build/coverage.xml">
<report todir="build/coverage" title="Demo"/>
</coverage-report>
</target>
</project>