<targetname="phpmd-ci"description="Perform project mess detection using PHPMD creating a log file for the continuous integration server">
<execexecutable="phpmd">
<argline="
${basedir} xml codesize,unusedcode,naming,design --reportfile ${output}/logs/pmd.xml --exclude Tests/
"/>
</exec>
</target>
<targetname="phpcs-ci"
description="Find coding standard violations using PHP_CodeSniffer and print human readable output. Intended for usage on the command line before committing.">
<execexecutable="phpcs">
<argline="--report=checkstyle
--report-file=${output}/logs/checkstyle.xml
--standard=Symfony2
--extensions=php
--ignore=Resources/*
${basedir}"/>
</exec>
</target>
<targetname="phpcpd"description="Find duplicate code using PHPCPD">
<execexecutable="phpcpd">
<argvalue="--log-pmd"/>
<argvalue="${output}/logs/pmd-cpd.xml"/>
<argpath="${basedir}"/>
</exec>
</target>
<targetname="apigen"description="Generate API documentation using apigen">
<execexecutable="apigen"failonerror="true">
<argline="-d ${output}/api/
-s ${basedir}
--progressbar no"/>
</exec>
</target>
<targetname="phpunit"description="Run unit tests with PHPUnit">