Skip to content

Commit

Permalink
Changed buildfile from phpdoc to phpdox
Browse files Browse the repository at this point in the history
  • Loading branch information
ipf committed Jan 29, 2014
1 parent e025fca commit d6a0eca
Showing 1 changed file with 11 additions and 17 deletions.
28 changes: 11 additions & 17 deletions build.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<project name="Nkwgmaps" default="build">
<target name="build"
depends="prepare,lint,parallelTasks,phpcb"/>
depends="prepare,lint,parallelTasks,phpcb"/>
<target name="clean" description="Cleanup build artifacts">
<delete dir="${basedir}/build/api"/>
<delete dir="${basedir}/build/code-browser"/>
Expand All @@ -10,7 +10,7 @@
<delete dir="${basedir}/build/pdepend"/>
</target>
<target name="prepare" depends="clean"
description="Prepare for build">
description="Prepare for build">
<mkdir dir="${basedir}/build/api"/>
<mkdir dir="${basedir}/build/code-browser"/>
<mkdir dir="${basedir}/build/coverage"/>
Expand All @@ -29,20 +29,20 @@
<exec executable="phpunit" failonerror="true"/>
</target>
<target name="parallelTasks"
description="Run code analysis tasks in parallel">
description="Run code analysis tasks in parallel">
<parallel threadCount="2">
<sequential>
<antcall target="pdepend"/>
<antcall target="phpmd"/>
</sequential>
<antcall target="phpcpd"/>
<antcall target="phpcs"/>
<antcall target="phpdoc"/>
<antcall target="phpdox"/>
<antcall target="phploc"/>
</parallel>
</target>
<target name="pdepend"
description="Calculate software metrics using PHP_Depend">
description="Calculate software metrics using PHP_Depend">
<exec executable="pdepend">
<arg value="--jdepend-xml=${basedir}/build/logs/jdepend.xml"/>
<arg value="--jdepend-chart=${basedir}/build/pdepend/dependencies.svg"/>
Expand All @@ -51,7 +51,7 @@
</exec>
</target>
<target name="phpmd"
description="Perform project mess detection using PHPMD">
description="Perform project mess detection using PHPMD">
<exec executable="phpmd">
<arg path="${basedir}"/>
<arg value="xml"/>
Expand All @@ -64,7 +64,7 @@
<exec executable="phpcpd">
<arg value="--log-pmd"/>
<arg value="${basedir}/build/logs/pmd-cpd.xml"/>
<arg path="${basedir}" />
<arg path="${basedir}"/>
</exec>
</target>
<target name="phploc" description="Measure project size using PHPLOC">
Expand All @@ -75,25 +75,19 @@
</exec>
</target>
<target name="phpcs"
description="Find coding standard violations using PHP_CodeSniffer">
description="Find coding standard violations using PHP_CodeSniffer">
<exec executable="phpcs" output="/dev/null">
<arg value="--report=checkstyle"/>
<arg value="--report-file=${basedir}/build/logs/checkstyle.xml"/>
<arg value="--standard=${basedir}/build/phpcs.xml"/>
<arg path="${basedir}/"/>
</exec>
</target>
<target name="phpdoc"
description="Generate API documentation using PHPDocumentor">
<exec executable="phpdoc">
<arg value="--directory"/>
<arg path="${basedir}/"/>
<arg value="--target"/>
<arg path="${basedir}/build/api"/>
</exec>
<target name="phpdox" description="Generate API documentation using phpDox">
<exec executable="phpdox"/>
</target>
<target name="phpcb"
description="Aggregate tool output with PHP_CodeBrowser">
description="Aggregate tool output with PHP_CodeBrowser">
<exec executable="phpcb">
<arg value="--log"/>
<arg path="${basedir}/build/logs"/>
Expand Down

0 comments on commit d6a0eca

Please sign in to comment.