-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathbuild.xml
More file actions
executable file
·29 lines (29 loc) · 1.34 KB
/
build.xml
File metadata and controls
executable file
·29 lines (29 loc) · 1.34 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<?xml version="1.0" encoding="UTF-8"?>
<project name="phpCallGraph" default="build" basedir=".">
<target name="build" depends="php-documentor,php-codesniffer,phpunit"/>
<target name="checkout">
<exec executable="svn" dir="${basedir}" failonerror="on">
<arg line="up"/>
</exec>
</target>
<target name="php-documentor">
<exec executable="phpdoc" dir="${basedir}" logerror="on">
<arg line="--title '${ant.project.name}' -ue on -t ${basedir}/docs/api -d src -tb '/home/falko/tools/phpUnderControl-svn/data/phpdoc' -o HTML:Phpuc:phpuc"/>
</exec>
</target>
<target name="php-codesniffer">
<mkdir dir="${basedir}/build/logs"/>
<exec executable="phpcs" dir="${basedir}" output="${basedir}/build/logs/checkstyle.xml" error="/tmp/checkstyle.error.log">
<arg line="--report=checkstyle --standard=PEAR src"/>
</exec>
</target>
<target name="phpunit">
<exec executable="phpunit" dir="${basedir}" failonerror="on">
<arg line=" --log-xml ${basedir}/build/logs/phpunit.xml --log-pmd ${basedir}/build/logs/phpunit.pmd.xml --coverage-xml ${basedir}/build/logs/phpunit.coverage.xml --coverage-html ${basedir}/docs/coverage PHPCallGraphCliTest test/PHPCallGraphCliTest.php"/>
</exec>
</target>
<target name="clean">
<delete dir="${basedir}/build"/>
<delete dir="${basedir}/docs"/>
</target>
</project>