Created
September 9, 2010 11:19
-
-
Save guyht/571740 to your computer and use it in GitHub Desktop.
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" encoding="UTF-8"?> | |
<project name="ghtlib" default="build" basedir="."> | |
<target name="build" depends="checkout,php-documentor,php-codesniffer,phpunit" /> | |
<target name="checkout"> | |
<exec executable="git" dir="${basedir}/source"> | |
<arg line="pull master origin" /> | |
</exec> | |
</target> | |
<target name="php-documentor"> | |
<exec executable="phpdoc" dir="${basedir}/source"> | |
<arg line="-ct type -ue on -t ${basedir}/build/api | |
-tb /usr/share/php/data/phpUnderControl/data/phpdoc | |
-o HTML:Phpuc:phpuc -d ."/> | |
</exec> | |
</target> | |
<target name="php-codesniffer"> | |
<exec executable="phpcs" | |
dir="${basedir}/source" | |
output="${basedir}/build/logs/checkstyle.xml"> | |
<arg line="--report=checkstyle | |
--standard=PEAR | |
."/> | |
</exec> | |
</target> | |
<target name="phpunit"> | |
<exec executable="phpunit" dir="${basedir}/source" failonerror="on"> | |
<arg line="--include-path /home/admin/public_html/library | |
--log-xml ${basedir}/build/logs/phpunit.xml | |
--log-pmd ${basedir}/build/logs/phpunit.pmd.xml | |
--log-metrics ${basedir}/build/logs/phpunit.metrics.xml | |
--coverage-xml ${basedir}/build/logs/phpunit.coverage.xml | |
--coverage-html ${basedir}/build/coverage | |
ghtlibTests.php" /> | |
</exec> | |
</target> | |
</project> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment