Skip to content

Commit

Permalink
Merge branch 'staging' of https://github.com/joomla/joomla-platform i…
Browse files Browse the repository at this point in the history
…nto foldernames
  • Loading branch information
aaronschmitz committed May 14, 2012
2 parents 1b53f91 + 917d160 commit 92f0c48
Show file tree
Hide file tree
Showing 381 changed files with 10,062 additions and 4,182 deletions.
2 changes: 1 addition & 1 deletion README.markdown
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Requirements
------------ ------------


* PHP 5.2.4+ for Platform versions 11.x * PHP 5.2.4+ for Platform versions 11.x
* PHP 5.3+ for Platform versions 12.x * PHP 5.3.1+ for Platform versions 12.x




Installation Installation
Expand Down
201 changes: 99 additions & 102 deletions build.xml
Original file line number Original file line Diff line number Diff line change
@@ -1,118 +1,115 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>


<project name="joomla-platform" default="build" basedir="."> <project name="joomla-platform" default="build" basedir=".">
<property name="source" value="libraries"/> <property name="source" value="libraries" />
<property name="joomlasource" value="libraries/joomla,libraries/platform.php,libraries/loader.php,libraries/import.php"/> <property name="joomlasource" value="libraries/joomla,libraries/platform.php,libraries/loader.php,libraries/import.php" />


<target name="clean" <target name="clean" description="Clean up and create artifact directories">
description="Clean up and create artifact directories"> <delete dir="${basedir}/build/api" />
<delete dir="${basedir}/build/api"/> <delete dir="${basedir}/build/code-browser" />
<delete dir="${basedir}/build/code-browser"/> <delete dir="${basedir}/build/coverage" />
<delete dir="${basedir}/build/coverage"/> <delete dir="${basedir}/build/logs" />
<delete dir="${basedir}/build/logs"/> <delete dir="${basedir}/build/pdepend" />
<delete dir="${basedir}/build/pdepend"/>


<mkdir dir="${basedir}/build/api"/> <mkdir dir="${basedir}/build/api" />
<mkdir dir="${basedir}/build/code-browser"/> <mkdir dir="${basedir}/build/code-browser" />
<mkdir dir="${basedir}/build/coverage"/> <mkdir dir="${basedir}/build/coverage" />
<mkdir dir="${basedir}/build/logs"/> <mkdir dir="${basedir}/build/logs" />
<mkdir dir="${basedir}/build/pdepend"/> <mkdir dir="${basedir}/build/pdepend" />
</target> </target>


<target name="phpunit" <target name="phpunit" description="Run unit tests using PHPUnit and generates junit.xml and clover.xml">
description="Run unit tests using PHPUnit and generates junit.xml and clover.xml"> <exec executable="phpunit" />
<exec executable="phpunit"/> </target>
</target>


<target name="parallelTasks" <target name="phpunit-legacy" description="Run legacy tests using PHPUnit and generates junit.legacy.xml and clover.legacy.xml">
description="Run the pdepend, phpmd, phpcpd, phpcs, phpdoc and phploc tasks in parallel using a maximum of 2 threads."> <exec executable="phpunit">
<parallel threadCount="2"> <arg value="-c" />
<sequential> <arg value="legacy.xml.dist" />
<antcall target="pdepend"/> </exec>
<antcall target="phpmd"/> </target>
</sequential>
<antcall target="phpcpd"/>
<antcall target="phpcs"/>
<antcall target="phpdoc"/>
<antcall target="phploc"/>
</parallel>
</target>


<target name="pdepend" <target name="parallelTasks" description="Run the pdepend, phpmd, phpcpd, phpcs, phpdoc and phploc tasks in parallel using a maximum of 2 threads.">
description="Generate jdepend.xml and software metrics charts using PHP_Depend"> <parallel threadCount="2">
<exec executable="pdepend"> <sequential>
<arg value="--jdepend-xml=${basedir}/build/logs/jdepend.xml" /> <antcall target="pdepend" />
<arg value="--jdepend-chart=${basedir}/build/pdepend/dependencies.svg" /> <antcall target="phpmd" />
<arg value="--overview-pyramid=${basedir}/build/pdepend/overview-pyramid.svg" /> </sequential>
<arg path="${source}" /> <antcall target="phpcpd" />
</exec> <antcall target="phpcs" />
</target> <antcall target="phpdoc" />
<antcall target="phploc" />
</parallel>
</target>


<target name="phpmd" <target name="pdepend" description="Generate jdepend.xml and software metrics charts using PHP_Depend">
description="Generate pmd.xml using PHPMD"> <exec executable="pdepend">
<exec executable="phpmd"> <arg value="--jdepend-xml=${basedir}/build/logs/jdepend.xml" />
<arg path="${joomlasource}" /> <arg value="--jdepend-chart=${basedir}/build/pdepend/dependencies.svg" />
<arg value="xml" /> <arg value="--overview-pyramid=${basedir}/build/pdepend/overview-pyramid.svg" />
<arg value="${basedir}/build/phpmd.xml" /> <arg path="${source}" />
<arg value="--reportfile" /> </exec>
<arg value="${basedir}/build/logs/pmd.xml" /> </target>
</exec>
</target>


<target name="phpcpd" <target name="phpmd" description="Generate pmd.xml using PHPMD">
description="Generate pmd-cpd.xml using PHPCPD"> <exec executable="phpmd">
<exec executable="phpcpd"> <arg path="${joomlasource}" />
<arg value="--log-pmd" /> <arg value="xml" />
<arg value="${basedir}/build/logs/pmd-cpd.xml" /> <arg value="${basedir}/build/phpmd.xml" />
<arg path="${source}/joomla" /> <arg value="--reportfile" />
</exec> <arg value="${basedir}/build/logs/pmd.xml" />
</target> </exec>
</target>


<target name="phploc" <target name="phpcpd" description="Generate pmd-cpd.xml using PHPCPD">
description="Generate phploc.csv"> <exec executable="phpcpd">
<exec executable="phploc"> <arg value="--log-pmd" />
<arg value="--log-csv" /> <arg value="${basedir}/build/logs/pmd-cpd.xml" />
<arg value="${basedir}/build/logs/phploc.csv" /> <arg path="${source}/joomla" />
<arg path="${source}/joomla" /> </exec>
</exec> </target>
</target>


<target name="phpcs" <target name="phploc" description="Generate phploc.csv">
description="Generate checkstyle.xml using PHP_CodeSniffer"> <exec executable="phploc">
<exec executable="phpcs"> <arg value="--log-csv" />
<arg value="--report=checkstyle" /> <arg value="${basedir}/build/logs/phploc.csv" />
<arg value="--report-file=${basedir}/build/logs/checkstyle.xml" /> <arg path="${source}/joomla" />
<arg value="--standard=${basedir}/build/phpcs/Joomla" /> </exec>
<arg value="--ignore=${source}/phpmailer,${source}/phputf8,${source}/simplepie/,${source}/config.example.php" /> </target>
<arg path="${source}" />
</exec>
</target>


<target name="phpdoc" <target name="phpcs" description="Generate checkstyle.xml using PHP_CodeSniffer">
description="Generate API documentation using PHPDocumentor"> <exec executable="phpcs">
<exec executable="phpdox"> <arg value="--report=checkstyle" />
<arg value="-c" /> <arg value="--report-file=${basedir}/build/logs/checkstyle.xml" />
<arg path="${source}" /> <arg value="--standard=${basedir}/build/phpcs/Joomla" />
<arg value="-d" /> <arg value="--ignore=${source}/phpmailer,${source}/phputf8,${source}/simplepie/,${source}/config.example.php" />
<arg path="${basedir}/build/api" /> <arg path="${source}" />
<arg value="-x" /> </exec>
<arg path="${basedir}/build/docs" /> </target>
<arg value="-g" />
<arg value="html" />
</exec>
</target>


<target name="phpcb" <target name="phpdoc" description="Generate API documentation using PHPDocumentor">
description="Aggregate tool output with PHP_CodeBrowser"> <exec executable="phpdox">
<exec executable="phpcb"> <arg value="-c" />
<arg value="--log" /> <arg path="${source}" />
<arg path="${basedir}/build/logs" /> <arg value="-d" />
<arg value="--source" /> <arg path="${basedir}/build/api" />
<arg path="${source}" /> <arg value="-x" />
<arg value="--output" /> <arg path="${basedir}/build/docs" />
<arg path="${basedir}/build/code-browser" /> <arg value="-g" />
</exec> <arg value="html" />
</target> </exec>
</target>


<target name="build" depends="clean,parallelTasks,phpunit,phpcb"/> <target name="phpcb" description="Aggregate tool output with PHP_CodeBrowser">
<exec executable="phpcb">
<arg value="--log" />
<arg path="${basedir}/build/logs" />
<arg value="--source" />
<arg path="${source}" />
<arg value="--output" />
<arg path="${basedir}/build/code-browser" />
</exec>
</target>

<target name="build" depends="clean,phpunit,phpunit-legacy,parallelTasks,phpcb" />
</project> </project>
Loading

0 comments on commit 92f0c48

Please sign in to comment.