commit 77b2cbc86744cfbafcc2dec7c80b4e44c7f849ca
parent 73be3cb8c1c10b6da3eee58d3f6e609452aab1ae
Author: Felicitus <privat@timohummel.com>
Date: Mon, 6 Jun 2011 03:03:09 +0200
Added target for the pre-commit hook
Diffstat:
1 file changed, 14 insertions(+), 0 deletions(-)
diff --git a/build.xml b/build.xml
@@ -22,11 +22,23 @@
<echo msg=" You may now proceed!"/>
</target>
+ <target name="pre-commit">
+ <jsllint haltonfailure="true">
+ <fileset dir="frontend">
+ <include name="**/*.js"/>
+ </fileset>
+ </jsllint>
+ </target>
+
<target name="clean">
<delete dir="reports" />
<delete dir="build" />
</target>
+ <target name="create-orm-proxies">
+ <exec command="doctrine orm:generate-proxies" passthru="true"/>
+ </target>
+
<target name="cruise-control" depends="clean,phpmd,jslint,phpcpd,code-coverage,php-documentor">
</target>
@@ -77,6 +89,8 @@
<include name="**"/>
</fileset>
</copy>
+
+ <phingcall target="create-orm-proxies"/>
</target>
<target name="build.quick">