-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.xml
50 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
<?xml version="1.0" encoding="utf-8"?>
<project name="foobar-inc" basedir="." default="version">
<fileset dir="app/library" id="lib">
<include name="**/*.php"/>
</fileset>
<target name="version">
<echo msg="VERSION 0.0.1"/>
</target>
<target name="clean">
<delete dir="reports"/>
<mkdir dir="reports"/>
</target>
<target name="build" depends="clean,lint,style,cpd,md,unit"/>
<target name="lint" description="Erros de sintaxe">
<phplint>
<fileset refid="lib"/>
</phplint>
</target>
<target name="style" description="checagem de estilo">
<phpcodesniffer standard="PSR2" skipversioncheck="true">
<fileset refid="lib"/>
<formatter type="checkstyle" outfile="reports/checkstyle.xml"/>
</phpcodesniffer>
</target>
<target name="cpd">
<phpcpd >
<fileset refid="lib"/>
<formatter outfile="reports/cpd.xml" type="pmd"/>
</phpcpd>
</target>
<target name="md">
<phpmd>
<fileset refid="lib"/>
<formatter outfile="reports/md.xml" type="xml"/>
</phpmd>
</target>
<target name="unit">
<exec command="phpunit"/>
</target>
<target name="pdependyloc">
<pdepend>
<fileset refid="lib"/>
<logger type="phpunit-xml" outfile="reports/metrics.xml"/>
<logger type="jdepend-xml" outfile="reports/jdepend.xml"/>
<logger type="jdepend-chart" outfile="reports/chart.svg"/>
<logger type="overview-pyramid" outfile="reports/pyramid.svg"/>
<analyzer type="coderank-mode" value="method"/>
</pdepend>
</target>
</project>