2012-06-03 16:18:16 +00:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
|
|
|
|
<project name="joomla" default="build" basedir=".">
|
|
|
|
<property name="source" value="." />
|
|
|
|
|
|
|
|
<target name="clean" description="Clean up and create artifact directories">
|
2012-08-20 12:41:54 +00:00
|
|
|
<delete dir="${basedir}/build/coverage" />
|
2012-06-03 16:18:16 +00:00
|
|
|
<delete dir="${basedir}/build/logs" />
|
|
|
|
|
2012-08-20 12:41:54 +00:00
|
|
|
<mkdir dir="${basedir}/build/coverage" />
|
2012-06-03 16:18:16 +00:00
|
|
|
<mkdir dir="${basedir}/build/logs" />
|
|
|
|
</target>
|
|
|
|
|
2012-08-20 12:41:54 +00:00
|
|
|
<target name="phpunit" description="Run unit tests using PHPUnit and generates junit.xml and clover.xml">
|
|
|
|
<exec executable="phpunit" />
|
|
|
|
</target>
|
|
|
|
|
2012-06-03 16:18:16 +00:00
|
|
|
<target name="phpcs" description="Generate checkstyle.xml using PHP_CodeSniffer">
|
|
|
|
<exec executable="phpcs">
|
|
|
|
<arg value="--report=checkstyle" />
|
|
|
|
<arg value="-p" />
|
|
|
|
<arg value="--report-file=${basedir}/build/logs/checkstyle.xml" />
|
|
|
|
<arg value="--standard=${basedir}/build/phpcs/Joomla" />
|
|
|
|
<arg path="${source}" />
|
|
|
|
</exec>
|
|
|
|
</target>
|
2012-08-20 12:41:54 +00:00
|
|
|
|
|
|
|
<target name="build" depends="clean,phpunit,phpcs" />
|
2012-06-03 16:18:16 +00:00
|
|
|
</project>
|