Permalink
Browse files

Added pull to build.xml

  • Loading branch information...
2 parents a12c186 + a54cf97 commit 09fe540849ac2b21faa841e6d6fa2cd854c194a2 @deepwinter deepwinter committed Feb 13, 2012
Showing with 27 additions and 1 deletion.
  1. +27 −1 build.xml
View
@@ -22,7 +22,7 @@
<ant dir="src" target="checkout"/>
</target>
- <target name="test" depends="clean, pull, prepare, phploc, pdepend, phpdoc, phpcpd, phpmd, phpcb"/>
+ <target name="test" depends="clean, prepare, phploc, pdepend, phpdoc, phpcpd, phpmd, phpcb"/>
<target name="clean">
<delete dir="build"/>
@@ -44,6 +44,7 @@
<mkdir dir="build/pdepend"/>
<mkdir dir="build/coverage"/>
<mkdir dir="build/api"/>
+ <mkdir dir="build/code-browser"/>
</target>
<target name="phploc">
@@ -72,6 +73,17 @@
</exec>
</target>
+
+ <target name="phpcb">
+ <exec executable="phpcb">
+ <arg value="--log" />
+ <arg path="${basedir}/build/logs"/>
+ <arg value="--source"/>
+ <arg path="${basedir}/src/lattice"/>
+ <arg value="--output" />
+ <arg path="${basedir}/build/code-browser"/>
+ </exec>
+ </target>
<target name="phpcpd">
<exec executable="phpcpd">
<arg value="--log-pmd"/>
@@ -100,4 +112,18 @@
</exec>
</target>
+ <target name="lint">
+ <apply executable="php" failonerror="true">
+ <arg value="-l" />
+
+ <fileset dir="${basedir}/src">
+ <include name="**/*.php" />
+ </fileset>
+
+ <fileset dir="${basedir}/tests">
+ <include name="**/*.php" />
+ </fileset>
+ </apply>
+ </target>
+
</project>

0 comments on commit 09fe540

Please sign in to comment.