1 <?xml version="1.0" encoding="UTF-8"?>
2 <project name="fusionforge-trunk" default="build" basedir="..">
3 <target name="build" depends="clean,checkout,php-documentor,php-codesniffer,phpunit"/>
5 <exec executable="find" dir="${basedir}/build" failonerror="on">
6 <arg line="packages/ -type f -delete"/>
9 <target name="checkout">
10 <exec executable="svn" dir="${basedir}/source" failonerror="on">
14 <target name="php-documentor">
15 <exec executable="phpdoc" dir="${basedir}/source/gforge/common" logerror="on">
16 <arg line="--title '${ant.project.name}' -ue on -t ${basedir}/build/api -d . -tb '/usr/share/php/data/phpUnderControl/data/phpdoc' -o HTML:Phpuc:phpuc"/>
19 <target name="php-codesniffer">
20 <exec executable="phpcs" dir="${basedir}/source/gforge/common" output="${basedir}/build/logs/checkstyle.xml" error="/tmp/checkstyle.error.log">
21 <arg line="--report=checkstyle --tab-width=4 --standard=PEAR ."/>
24 <target name="phpunit">
25 <exec executable="phpunit" dir="${basedir}/source/tests" failonerror="on">
26 <arg line=" --log-xml ${basedir}/build/logs/phpunit.xml
27 --log-pmd ${basedir}/build/logs/phpunit.pmd.xml
28 --log-metrics ${basedir}/build/logs/phpunit.metrics.xml
29 --coverage-xml ${basedir}/build/logs/phpunit.coverage.xml
30 --coverage-html ${basedir}/build/coverage
33 <exec executable="phpunit" dir="${basedir}/source/tests" failonerror="on">
34 <arg line=" --log-xml ${basedir}/build/logs/phpunit2.xml
35 --log-pmd ${basedir}/build/logs/phpunit2.pmd.xml
36 --log-metrics ${basedir}/build/logs/phpunit2.metrics.xml
37 --coverage-xml ${basedir}/build/logs/phpunit2.coverage.xml
38 --coverage-html ${basedir}/build/coverage2
39 TarCentos52Tests.php"/>