|
4 | 4 |
|
5 | 5 | <target name="clean" description="Clean up and create artifact directories">
|
6 | 6 | <delete dir="${basedir}/build/api"/>
|
7 |
| - <delete dir="${basedir}/build/code-browser"/> |
8 | 7 | <delete dir="${basedir}/build/coverage"/>
|
9 | 8 | <delete dir="${basedir}/build/logs"/>
|
10 | 9 | <delete dir="${basedir}/build/pdepend"/>
|
11 | 10 |
|
12 | 11 | <mkdir dir="${basedir}/build/api"/>
|
13 |
| - <mkdir dir="${basedir}/build/code-browser"/> |
14 | 12 | <mkdir dir="${basedir}/build/coverage"/>
|
15 | 13 | <mkdir dir="${basedir}/build/logs"/>
|
16 | 14 | <mkdir dir="${basedir}/build/pdepend"/>
|
17 | 15 | </target>
|
18 | 16 |
|
19 | 17 | <target name="phpab">
|
20 |
| - <exec executable="phpab"> |
| 18 | + <exec executable="${basedir}/tools/phpab"> |
21 | 19 | <arg line="--cache ${basedir}/build/phpab/autoload.cache -o src/autoload.php" />
|
22 | 20 | <arg path="src" />
|
23 | 21 | </exec>
|
24 |
| - <exec executable="phpab"> |
| 22 | + <exec executable="${basedir}/tools/phpab"> |
25 | 23 | <arg line="--cache ${basedir}/build/phpab/autoload.cache" />
|
26 | 24 | <arg line="-o src/vendor.php" />
|
27 | 25 | <arg line="-b vendor" />
|
|
33 | 31 | </target>
|
34 | 32 |
|
35 | 33 | <target name="phpunit" description="Run unit tests using PHPUnit and generates junit.xml and clover.xml">
|
36 |
| - <exec executable="phpunit" failonerror="true"/> |
37 |
| - </target> |
38 |
| - |
39 |
| - <target name="parallelTasks" |
40 |
| - description="Run the pdepend, phpmd, phpcpd, phpcs and phploc tasks in parallel using a maximum of 2 threads."> |
41 |
| - <parallel threadCount="2"> |
42 |
| - <sequential> |
43 |
| - <antcall target="pdepend"/> |
44 |
| - <antcall target="phpmd"/> |
45 |
| - </sequential> |
46 |
| - <antcall target="phpcpd"/> |
47 |
| - <antcall target="phpcs"/> |
48 |
| - <antcall target="phploc"/> |
49 |
| - </parallel> |
50 |
| - </target> |
51 |
| - |
52 |
| - <target name="pdepend" description="Generate jdepend.xml and software metrics charts using PHP_Depend"> |
53 |
| - <exec executable="pdepend"> |
54 |
| - <arg line="--jdepend-xml=${basedir}/build/logs/jdepend.xml |
55 |
| - --jdepend-chart=${basedir}/build/pdepend/dependencies.svg |
56 |
| - --overview-pyramid=${basedir}/build/pdepend/overview-pyramid.svg |
57 |
| - ${source}"/> |
58 |
| - </exec> |
| 34 | + <exec executable="${basedir}/tools/phpunit" failonerror="true"/> |
59 | 35 | </target>
|
60 | 36 |
|
61 | 37 | <target name="phpmd" description="Generate pmd.xml using PHPMD">
|
62 |
| - <exec executable="phpmd"> |
| 38 | + <exec executable="${basedir}/tools/phpmd"> |
63 | 39 | <arg line="${source}
|
64 | 40 | xml
|
65 | 41 | codesize,design,naming,unusedcode
|
|
68 | 44 | </target>
|
69 | 45 |
|
70 | 46 | <target name="phpcpd" description="Generate pmd-cpd.xml using PHPCPD">
|
71 |
| - <exec executable="phpcpd"> |
| 47 | + <exec executable="${basedir}/tools/phpcpd"> |
72 | 48 | <arg line="--log-pmd ${basedir}/build/logs/pmd-cpd.xml ${source}"/>
|
73 | 49 | </exec>
|
74 | 50 | </target>
|
75 | 51 |
|
76 | 52 | <target name="phploc" description="Generate phploc.xml">
|
77 |
| - <exec executable="phploc"> |
| 53 | + <exec executable="${basedir}/tools/phploc"> |
78 | 54 | <arg line="--count-tests --log-xml ${basedir}/build/logs/phploc.xml ${source} tests"/>
|
79 | 55 | </exec>
|
80 | 56 | </target>
|
|
144 | 120 | </fileset>
|
145 | 121 | </delete>
|
146 | 122 |
|
147 |
| - <exec executable="phpab" failonerror="true"> |
| 123 | + <exec executable="${basedir}/tools/phpab" failonerror="true"> |
148 | 124 | <arg value="--var"/>
|
149 | 125 | <arg value="VERSION=${version}"/>
|
150 | 126 | <arg value="--all"/>
|
|
163 | 139 | <delete dir="${basedir}/build/phar/_tmp"/>
|
164 | 140 | </target>
|
165 | 141 |
|
166 |
| - <target name="build" depends="clean,parallelTasks,phpunit"/> |
| 142 | + <target name="build" depends="clean,phpab,phpunit"/> |
167 | 143 | </project>
|
0 commit comments