-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathbuild.xml
78 lines (69 loc) · 2.23 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
71
72
73
74
75
76
77
78
<project name="Munisense Zigbee Library" default="build">
<target name="clean">
<delete dir="${basedir}/build"/>
</target>
<target name="prepare">
<mkdir dir="${basedir}/build/logs"/>
<mkdir dir="${basedir}/build/docs"/>
<mkdir dir="${basedir}/build/coverage"/>
</target>
<target name="basedir">
<exec dir="${basedir}"
executable="pwd">
</exec>
</target>
<target name="phpdoc">
<exec dir="${basedir}"
executable="phpdoc"
failonerror="true">
<arg line="-t build/docs/
--directory src
-ti 'Munisense Zigbee Library'
--parseprivate on
--undocumentedelements on
--output HTML:Smarty:PHP"/>
</exec>
</target>
<target name="phpcpd">
<exec dir="${basedir}"
executable="/usr/local/bin/phpcpd"
failonerror="false">
<arg line="--log-pmd build/logs/pmd.xml src"/>
</exec>
</target>
<target name="pdepend">
<exec dir="${basedir}"
executable="pdepend"
failonerror="true">
<arg line="--jdepend-xml=build/logs/jdepend.xml src"/>
</exec>
</target>
<target name="phpcs">
<exec dir="${basedir}"
executable="phpcs"
output="${basedir}/build/logs/checkstyle.xml"
failonerror="false">
<arg line="--report=checkstyle src"/>
</exec>
</target>
<target name="phpunit">
<exec dir="${basedir}"
executable="phpunit"
failonerror="false">
<arg line="-c phpunit.xml
--log-junit build/logs/junit.xml"/>
</exec>
</target>
<target name="code-coverage">
<exec dir="${basedir}"
executable="phpunit"
failonerror="false">
<arg line="-c phpunit.xml
--coverage-html build/coverage
--log-junit build/logs/junit.xml
--coverage-clover build/logs/clover.xml
"/>
</exec>
</target>
<target name="build" depends="clean,prepare, phpcpd, pdepend, code-coverage"/>
</project>