forked from marcelog/PAMI
-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.xml
104 lines (94 loc) · 2.61 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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
<project name="PAMI" default="all" basedir=".">
<property file="./build.properties"/>
<target name="prepare" depends="clean">
<mkdir dir="${dir.output}"/>
</target>
<target name="clean">
<delete dir="${dir.output}"/>
</target>
<target name="phpdepend">
<mkdir dir="${phpdepend.output.xml.dir}"/>
<mkdir dir="${phpdepend.output.html.dir}"/>
<exec
command="${phpdepend.exec} ${phpdepend.args}"
dir="${project.basedir}"
passthru="true"
/>
<xslt
file="${phpdepend.output.xml.file}"
tofile="${phpdepend.output.html.file}"
style="${phpdepend.style}"
/>
</target>
<target name="phpcs">
<mkdir dir="${phpcs.output.xml.dir}"/>
<mkdir dir="${phpcs.output.html.dir}"/>
<exec
command="${phpcs.exec} ${phpcs.args}"
dir="${project.basedir}"
passthru="true"
/>
<xslt
file="${phpcs.output.xml.file}"
tofile="${phpcs.output.html.file}"
style="${phpcs.style}"
/>
</target>
<target name="phpunit">
<mkdir dir="${phpunit.output.xml.dir}"/>
<mkdir dir="${phpunit.output.html.dir}"/>
<exec
command="${phpunit.exec} ${phpunit.args}"
dir="${project.basedir}/test"
passthru="true"
/>
</target>
<target name="phpmd">
<mkdir dir="${phpmd.output.xml.dir}"/>
<mkdir dir="${phpmd.output.html.dir}"/>
<exec
command="${phpmd.exec} ${phpmd.args}"
dir="${project.basedir}"
passthru="true"
/>
<xslt
file="${phpmd.output.xml.file}"
tofile="${phpmd.output.html.file}"
style="${phpmd.style}"
/>
</target>
<target name="phpcpd">
<mkdir dir="${phpcpd.output.xml.dir}"/>
<mkdir dir="${phpcpd.output.html.dir}"/>
<exec
command="${phpcpd.exec} ${phpcpd.args}"
dir="${project.basedir}"
passthru="true"
/>
<xslt
file="${phpcpd.output.xml.file}"
tofile="${phpcpd.output.html.file}"
style="${phpcpd.style}"
/>
</target>
<target name="phpdoc">
<mkdir dir="${phpdoc.output.html.dir}"/>
<exec
command="${phpdoc.exec} ${phpdoc.args}"
dir="${project.basedir}/src/mg/PAMI"
passthru="true"
/>
</target>
<target name="phploc">
<mkdir dir="${phploc.output.html.dir}"/>
<exec
command="${phploc.exec} ${phploc.args} > ${phploc.output.html.file}"
dir="${project.basedir}"
passthru="true"
/>
</target>
<target name="all" depends="clean, prepare, report"/>
<target name="build" depends="test"/>
<target name="test" depends="phpunit"/>
<target name="report" depends="build, phploc, phpdoc, phpdepend, phpcs, phpmd, phpcpd"/>
</project>