|
2 | 2 | <project name="notifications" default="full-build">
|
3 | 3 | <!-- By default, we assume all tools to be on the $PATH -->
|
4 | 4 | <property name="composer" value="composer"/>
|
5 |
| - <property name="pdepend" value="pdepend"/> |
6 | 5 | <property name="phpcpd" value="phpcpd"/>
|
7 |
| - <property name="phpcs" value="phpcs"/> |
8 | 6 | <property name="phpdox" value="phpdox"/>
|
9 | 7 | <property name="phploc" value="phploc"/>
|
10 |
| - <property name="phpmd" value="phpmd"/> |
11 |
| - <property name="phpunit" value="phpunit"/> |
12 | 8 |
|
13 |
| - <!-- Use this when the tools are managed by Composer in ${basedir}/vendor/bin |
| 9 | + <!-- Some tools are managed by Composer. --> |
14 | 10 | <property name="pdepend" value="${basedir}/vendor/bin/pdepend"/>
|
15 |
| - <property name="phpcpd" value="${basedir}/vendor/bin/phpcpd"/> |
16 | 11 | <property name="phpcs" value="${basedir}/vendor/bin/phpcs"/>
|
17 |
| - <property name="phpdox" value="${basedir}/vendor/bin/phpdox"/> |
18 |
| - <property name="phploc" value="${basedir}/vendor/bin/phploc"/> |
19 | 12 | <property name="phpmd" value="${basedir}/vendor/bin/phpmd"/>
|
20 |
| - <property name="phpunit" value="${basedir}/vendor/bin/phpunit"/> --> |
| 13 | + <property name="phpunit" value="${basedir}/vendor/bin/phpunit"/> |
21 | 14 |
|
22 | 15 | <target name="full-build"
|
23 | 16 | depends="prepare,static-analysis,phpunit,phpdox,-check-failure"
|
|
233 | 226 | unless="phpunit.done"
|
234 | 227 | depends="prepare"
|
235 | 228 | description="Run unit tests with PHPUnit">
|
236 |
| - <exec executable="${phpunit}" resultproperty="result.phpunit" taskname="phpunit"> |
| 229 | + <exec executable="php" resultproperty="result.phpunit" taskname="phpunit"> |
| 230 | + <arg value="-dzend_extension=xdebug.so" /> |
| 231 | + <arg value="-dxdebug.mode=coverage" /> |
| 232 | + <arg value="${phpunit}" /> |
237 | 233 | <arg value="--configuration"/>
|
238 | 234 | <arg path="${basedir}/phpunit.xml"/>
|
239 | 235 | </exec>
|
|
0 commit comments