|
11 | 11 | <!-- <property name="toolsdir" value="${basedir}/vendor/bin/"/> --> |
12 | 12 |
|
13 | 13 | <target name="build" |
14 | | - depends="prepare,lint,phploc-ci,pdepend,phpmd-ci,phpcs-ci,phpcpd-ci,unit-test,apigen" |
| 14 | + depends="prepare,lint,phpcs-ci,unit-test,apigen" |
15 | 15 | description=""/> |
16 | 16 |
|
17 | 17 | <target name="build-parallel" |
|
20 | 20 |
|
21 | 21 | <target name="tools-parallel" description="Run tools in parallel"> |
22 | 22 | <parallel threadCount="2"> |
23 | | - <sequential> |
24 | | - <antcall target="pdepend"/> |
25 | | - <antcall target="phpmd-ci"/> |
26 | | - </sequential> |
27 | | - <antcall target="phpcpd-ci"/> |
28 | 23 | <antcall target="phpcs-ci"/> |
29 | | - <antcall target="phploc-ci"/> |
30 | 24 | </parallel> |
31 | 25 | </target> |
32 | 26 |
|
|
36 | 30 | <delete dir="${basedir}/build/docs"/> |
37 | 31 | <delete dir="${basedir}/build/coverage"/> |
38 | 32 | <delete dir="${basedir}/build/logs"/> |
39 | | - <delete dir="${basedir}/build/pdepend"/> |
40 | 33 | <property name="clean.done" value="true"/> |
41 | 34 | </target> |
42 | 35 |
|
|
47 | 40 | <mkdir dir="${basedir}/build/docs"/> |
48 | 41 | <mkdir dir="${basedir}/build/coverage"/> |
49 | 42 | <mkdir dir="${basedir}/build/logs"/> |
50 | | - <mkdir dir="${basedir}/build/pdepend"/> |
51 | 43 | <property name="prepare.done" value="true"/> |
52 | 44 | </target> |
53 | 45 |
|
|
67 | 59 | </apply> |
68 | 60 | </target> |
69 | 61 |
|
70 | | - <target name="phploc" |
71 | | - description="Measure project size using PHPLOC and print human readable output. Intended for usage on the command line."> |
72 | | - <exec executable="${toolsdir}phploc${execPostfix}"> |
73 | | - <arg value="--count-tests" /> |
74 | | - <arg path="${basedir}/src" /> |
75 | | - <arg path="${basedir}/tests" /> |
76 | | - </exec> |
77 | | - </target> |
78 | | - |
79 | | - <target name="phploc-ci" |
80 | | - depends="prepare" |
81 | | - description="Measure project size using PHPLOC and log result in CSV and XML format. Intended for usage within a continuous integration environment."> |
82 | | - <exec executable="${toolsdir}phploc${execPostfix}"> |
83 | | - <arg value="--count-tests" /> |
84 | | - <arg value="--log-csv" /> |
85 | | - <arg path="${basedir}/build/logs/phploc.csv" /> |
86 | | - <arg value="--log-xml" /> |
87 | | - <arg path="${basedir}/build/logs/phploc.xml" /> |
88 | | - <arg path="${basedir}/src" /> |
89 | | - <arg path="${basedir}/tests" /> |
90 | | - </exec> |
91 | | - </target> |
92 | | - |
93 | | - <target name="pdepend" |
94 | | - depends="prepare" |
95 | | - description="Calculate software metrics using PHP_Depend and log result in XML format. Intended for usage within a continuous integration environment."> |
96 | | - <exec executable="${toolsdir}pdepend${execPostfix}"> |
97 | | - <arg value="--jdepend-xml=${basedir}/build/logs/jdepend.xml" /> |
98 | | - <arg value="--jdepend-chart=${basedir}/build/pdepend/dependencies.svg" /> |
99 | | - <arg value="--overview-pyramid=${basedir}/build/pdepend/overview-pyramid.svg" /> |
100 | | - <arg path="${basedir}/src" /> |
101 | | - </exec> |
102 | | - </target> |
103 | | - |
104 | | - <target name="phpmd" |
105 | | - description="Perform project mess detection using PHPMD and print human readable output. Intended for usage on the command line before committing."> |
106 | | - <exec executable="${toolsdir}phpmd${execPostfix}"> |
107 | | - <arg path="${basedir}/src" /> |
108 | | - <arg value="text" /> |
109 | | - <arg value="codesize,controversial,design,naming,unusedcode"/> |
110 | | - <arg path="${basedir}/build/phpmd.xml" /> |
111 | | - </exec> |
112 | | - </target> |
113 | | - |
114 | | - <target name="phpmd-ci" |
115 | | - depends="prepare" |
116 | | - description="Perform project mess detection using PHPMD and log result in XML format. Intended for usage within a continuous integration environment."> |
117 | | - <exec executable="${toolsdir}phpmd${execPostfix}"> |
118 | | - <arg path="${basedir}/src" /> |
119 | | - <arg value="xml" /> |
120 | | - <arg value="codesize,controversial,design,naming,unusedcode"/> |
121 | | - <arg path="${basedir}/build/phpmd.xml" /> |
122 | | - <arg value="--reportfile" /> |
123 | | - <arg path="${basedir}/build/logs/pmd.xml" /> |
124 | | - </exec> |
125 | | - </target> |
126 | | - |
127 | 62 | <target name="phpcs" |
128 | 63 | description="Find coding standard violations using PHP_CodeSniffer and print human readable output. Intended for usage on the command line before committing."> |
129 | 64 | <exec executable="${toolsdir}phpcs${execPostfix}" failonerror="true"> |
|
146 | 81 | </exec> |
147 | 82 | </target> |
148 | 83 |
|
149 | | - <target name="phpcpd" |
150 | | - description="Find duplicate code using PHPCPD and print human readable output. Intended for usage on the command line before committing."> |
151 | | - <exec executable="${toolsdir}phpcpd${execPostfix}"> |
152 | | - <arg path="${basedir}/src" /> |
153 | | - </exec> |
154 | | - </target> |
155 | | - |
156 | | - <target name="phpcpd-ci" |
157 | | - depends="prepare" |
158 | | - description="Find duplicate code using PHPCPD and log result in XML format. Intended for usage within a continuous integration environment."> |
159 | | - <exec executable="${toolsdir}phpcpd${execPostfix}"> |
160 | | - <arg value="--log-pmd" /> |
161 | | - <arg path="${basedir}/build/logs/pmd-cpd.xml" /> |
162 | | - <arg path="${basedir}/src" /> |
163 | | - </exec> |
164 | | - </target> |
165 | | - |
166 | 84 | <target name="behat" |
167 | 85 | depends="prepare" |
168 | 86 | description="Run behat tests" |
|
0 commit comments