Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathbuild.xml
More file actions
Latest commit
128 lines (114 loc) · 4.81 KB
/
Copy pathbuild.xml
File metadata and controls
128 lines (114 loc) · 4.81 KB
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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
<?xml version="1.0" encoding="UTF-8"?>
<projectname="CLI Application"default="build">
<!-- Build -->
<targetname="build"depends="prepare,lint,phploc,pdepend,phpmd-ci,phpcs-ci,phpcpd,phpdox"/>
<!-- Build Parallel -->
<targetname="build-parallel"depends="prepare,lint,tools-parallel"/>
<!-- Tools Parallel -->
<targetname="tools-parallel"description="Run tools in parallel">
<parallelthreadCount="2">
<sequential>
<antcalltarget="pdepend"/>
<antcalltarget="phpmd-ci"/>
</sequential>
<antcalltarget="phpcpd"/>
<antcalltarget="phpcs-ci"/>
<antcalltarget="phploc"/>
<antcalltarget="phpdox"/>
</parallel>
</target>
<!-- Cleaning Task -->
<targetname="clean"description="Cleanup build artifacts">
<deletedir="${basedir}/build/api"/>
<deletedir="${basedir}/build/coverage"/>
<deletedir="${basedir}/build/logs"/>
<deletedir="${basedir}/build/pdepend"/>
<deletedir="${basedir}/build/docs"/>
</target>
<!-- Build preperation -->
<targetname="prepare"depends="clean"description="Prepare for build">
<mkdirdir="${basedir}/build/api"/>
<mkdirdir="${basedir}/build/coverage"/>
<mkdirdir="${basedir}/build/logs"/>
<mkdirdir="${basedir}/build/pdepend"/>
<mkdirdir="${basedir}/build/phpdox"/>
</target>
<!-- Perform syntax check of sourcecode files -->
<targetname="lint"description="Perform syntax check of sourcecode files">
<applyexecutable="php"failonerror="true">
<argvalue="-l" />
<filesetdir="${basedir}/system">
<includename="**/*.php" />
<modified />
</fileset>
</apply>
</target>
<!-- Measure project size using PHPLOC -->
<targetname="phploc"description="Measure project size using PHPLOC">
<execexecutable="phploc">
<argvalue="--count-tests" />
<argvalue="--log-csv" />
<argvalue="${basedir}/build/logs/phploc.csv" />
<argpath="${basedir}/system" />
</exec>
</target>
<!-- Calculate software metrics using PHP_Depend -->
<targetname="pdepend"description="Calculate software metrics using PHP_Depend">
<execexecutable="pdepend">
<argvalue="--jdepend-xml=${basedir}/build/logs/jdepend.xml" />
<argvalue="--jdepend-chart=${basedir}/build/pdepend/dependencies.svg" />
<argvalue="--overview-pyramid=${basedir}/build/pdepend/overview-pyramid.svg" />
<argpath="${basedir}/system" />
</exec>
</target>
<!-- Perform project mess detection using PHPMD and print human readable output. Intended for usage on the command line before committing. -->
<targetname="phpmd"description="Perform project mess detection using PHPMD and print human readable output. Intended for usage on the command line before committing.">
<execexecutable="phpmd">
<argpath="${basedir}/system" />
<argvalue="text" />
<!-- <arg value="cleancode" /> -->
<argvalue="codesize" />
<argvalue="design" />
<argvalue="naming" />
<argvalue="unusedcode" />
</exec>
</target>
<!-- Perform project mess detection using PHPMD creating a log file for the continuous integration server -->
<targetname="phpmd-ci"description="Perform project mess detection using PHPMD creating a log file for the continuous integration server">
<execexecutable="phpmd">
<argpath="${basedir}/system" />
<argvalue="xml" />
<argvalue="${basedir}/build/phpmd.xml" />
<argvalue="--reportfile" />
<argvalue="${basedir}/build/logs/pmd.xml" />
</exec>
</target>
<!-- Find coding standard violations using PHP_CodeSniffer and print human readable output. Intended for usage on the command line before committing. -->
<targetname="phpcs"description="Find coding standard violations using PHP_CodeSniffer and print human readable output. Intended for usage on the command line before committing.">
<execexecutable="phpcs">
<argvalue="--standard=${basedir}/build/phpcs.xml" />
<argpath="${basedir}/system" />
</exec>
</target>
<!-- Find coding standard violations using PHP_CodeSniffer creating a log file for the continuous integration server -->
<targetname="phpcs-ci"description="Find coding standard violations using PHP_CodeSniffer creating a log file for the continuous integration server">
<execexecutable="phpcs"output="/dev/null">
<argvalue="--report=checkstyle" />
<argvalue="--report-file=${basedir}/build/logs/checkstyle.xml" />
<argvalue="--standard=${basedir}/build/phpcs.xml" />
<argpath="${basedir}/system" />
</exec>
</target>
<!-- Find duplicate code using PHPCPD -->
<targetname="phpcpd"description="Find duplicate code using PHPCPD">
<execexecutable="phpcpd">
<argvalue="--log-pmd" />
<argvalue="${basedir}/build/logs/pmd-cpd.xml" />
<argpath="${basedir}/system" />
</exec>
</target>
<!-- Generate API documentation using phpDox -->
<targetname="phpdox"description="Generate API documentation using phpDox">
<execexecutable="phpdox"/>
</target>
</project>