-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
57 lines (50 loc) · 1.7 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
<project name="Test" default="build" basedir=".">
<property name="output" location="${basedir}/buildOutput/"/>
<target name="init">
<mkdir dir="${output}"/>
<mkdir dir="${output}/phpcs/"/>
<mkdir dir="${output}/pdepend/"/>
</target>
<target name="build" depends="init, test, phpcs, phpmd, phpcpd, pdepend">
</target>
<target name="test">
<exec executable="phpunit" failonerror="true">
<arg line="--coverage-clover ${output}/CodeCoverage/clover.xml
--coverage-html ${output}/CodeCoverage/
."/>
</exec>
</target>
<target name="phpcs">
<exec executable="phpcs">
<arg line="--report=checkstyle
--report-file=${output}/phpcs/checkstyle.xml
--standard=PEAR
${basedir}" />
</exec>
</target>
<target name="phpmd">
<exec executable="phpmd">
<arg line="
. xml codesize,unusedcode,naming,design --reportfile ${output}/messdetector.xml --exclude Tests/
" />
</exec>
</target>
<target name="phpcpd">
<exec executable="phpcpd">
<arg line="
--log-pmd ${output}/phpcpd.xml .
" />
</exec>
</target>
<target name="pdepend">
<exec executable="pdepend">
<arg line="
--jdepend-xml=${output}/pdepend/jdepend.xml
--jdepend-chart=${output}/pdepend/dependencies.svg
--overview-pyramid=${output}/pdepend/overview-pyramid.svg
--ignore=Tests/
.
" />
</exec>
</target>
</project>