-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.xml
64 lines (54 loc) · 1.73 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
<?xml version="1.0" encoding="UTF-8"?>
<project name="restfull-client-orm" default="build" basedir="." description="Quality">
<target name="build" depends="clean, phpcs, phpmd, pdepend, phpcpd, phpunit, phpcb">
</target>
<target name="clean">
<delete dir="build"/>
<mkdir dir="build" />
<mkdir dir="build/log" />
<mkdir dir="build/chart" />
</target>
<target name="phpcs">
<phpcodesniffer
standard="PSR2"
file="src"
>
<formatter type="checkstyle" outfile="build/log/checkstyle.xml"/>
</phpcodesniffer>
</target>
<target name="phpmd">
<phpmd
file="src"
format="xml"
>
<formatter type="xml" outfile="build/log/pmd.xml"/>
</phpmd>
</target>
<target name="pdepend">
<phpdepend
file="src"
>
<logger type="jdepend-chart" outfile="build/chart/chart.svg"/>
<logger type="overview-pyramid" outfile="build/chart/pyramid.svg"/>
<logger type="jdepend-xml" outfile="build/log/jdepend.xml"/>
<analyzer type="coderank-mode" value="method"/>
</phpdepend>
</target>
<target name="phpcpd">
<phpcpd
file="src"
>
<formatter type="pmd" outfile="build/log/pmd-cpd.xml"/>
</phpcpd>
</target>
<target name="phpunit">
<exec command="vendor/bin/phpunit" />
</target>
<target name="phpcb">
<exec executable="vendor/bin/phpcb">
<arg line="--log build/log
--output build/code_browser
--source src" />
</exec>
</target>
</project>