Created
June 25, 2010 13:16
-
-
Save eleclerc/452825 to your computer and use it in GitHub Desktop.
my phing skeleton build file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0"?> | |
<project name="change-me" default="build"> | |
<target name="build" description="Placeholder"> | |
<echo msg="See list of availlable tasks by executing: phing -l" /> | |
</target> | |
<target name="lint"> | |
<phplint haltonfailure="yes" level="verbose"> | |
<fileset dir="${project.basedir}"> | |
<include name="**/*.php"/> | |
</fileset> | |
</phplint> | |
</target> | |
<!-- pear channel-discover pear.phpunit.de --> | |
<!-- pear channel-discover pear.symfony-project.com --> | |
<!-- pear install phpunit/PHPUnit --> | |
<target name="runtests" description="Run PHPUnit"> | |
<phpunit codecoverage="true" haltonfailure="true" haltonerror="true"> | |
<formatter type="plain" usefile="false"/> | |
<batchtest> | |
<fileset dir="${project.basedir}/tests"> | |
<include name="**/*Test*.php" /> | |
</fileset> | |
</batchtest> | |
</phpunit> | |
</target> | |
<!-- pear channel-discover pear.phpunit.de --> | |
<!-- pear install phpunit/phpcpd --> | |
<target name="phpcpd" description="run 'PHP Copy/Paste detector' tool"> | |
<exec command="phpcpd --suffixes php ${project.basedir}" passthru="true" /> | |
</target> | |
<!-- pear channel-discover pear.phpunit.de --> | |
<!-- pear channel-discover components.ez.no --> | |
<!-- pear install phpunit/phploc --> | |
<target name="phploc" description="run 'PHP Line Of Code' tool"> | |
<exec command="phploc --suffixes php ${project.basedir}" passthru="true" /> | |
</target> | |
<!-- pear install PHP_CodeSniffer --> | |
<target name="phpcs" description="run 'PHP CodeSniffer' with the PEAR coding standards"> | |
<exec | |
command="phpcs --standard=PEAR --extensions=php --report-file=phpcs-report.txt --tab-width=4 ${project.basedir}" | |
passthru="true" | |
/> | |
<echo message="CodeSniffer report saved as ${project.basedir}/phpcs-report.txt" /> | |
</target> | |
<!-- pear channel-discover pear.pdepend.org --> | |
<!-- pear install pdepend/PHP_Depend-beta --> | |
<target name="pdepend" description="run the PHP Depend tool"> | |
<property name="pdepend.dir" value="/tmp" /> | |
<exec command="pdepend --summary-xml=${pdepend.dir}/summary.xml --jdepend-chart=${pdepend.dir}/jdepend.svg --overview-pyramid=${pdepend.dir}/pyramid.svg --suffix=php,cpt ${project.basedir}" /> | |
<echo message="pdepend reports/graphs in '${pdepend.dir}'" /> | |
</target> | |
</project> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment