Skip to content
This repository has been archived by the owner on Feb 6, 2022. It is now read-only.

Commit

Permalink
chaining
Browse files Browse the repository at this point in the history
  • Loading branch information
elnebuloso committed Nov 6, 2014
1 parent ee418ca commit 9d8f068
Show file tree
Hide file tree
Showing 14 changed files with 36 additions and 7 deletions.
3 changes: 2 additions & 1 deletion build.properties
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
project.vendor = elnebuloso
project.name = phing-commons
project.name = phing-commons
project.chains = php
5 changes: 4 additions & 1 deletion commons/chains/default.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
<project>


<echo message="loading chain: default" />


<target name="clean" depends="clean:before, clean:main, clean:after" />
<target name="clean:main" hidden="true" depends="clean.tmp" />

Expand Down Expand Up @@ -44,7 +47,7 @@
</target>


<target name="report" depends="clean.reports, report:before, report:main, report:after" />
<target name="report" depends="report:before, report:main, report:after" />
<target name="report:main" hidden="true" depends="report.apigen, report.phpcpd, report.phpcs, report.phpdepend, report.phploc, report.phpmd" />


Expand Down
3 changes: 3 additions & 0 deletions commons/chains/hooks.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
<project>


<echo message="loading chain: hooks" />


<target name="clean:before" hidden="true">
<echo message="no actions defined" level="debug" />
</target>
Expand Down
3 changes: 1 addition & 2 deletions commons/chains/php-composer-package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,10 @@

<project>


<echo message="loading chain: php-composer-package" />

<target name="init:main" hidden="true" depends="composer.validate, composer.update" />
<target name="test:main" hidden="true" depends="test.phplint, test.phpunit" />

<target name="build:after" hidden="true" depends="report" />

</project>
11 changes: 11 additions & 0 deletions commons/chains/php.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>


<project>

<echo message="loading chain: php" />

<target name="test:main" hidden="true" depends="test.phplint, test.phpunit" />
<target name="build:after" hidden="true" depends="report" />

</project>
10 changes: 9 additions & 1 deletion commons/commons.xml
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,16 @@


<!-- ============================================ -->
<!-- setup the chains -->
<!-- running commons -->
<!-- ============================================ -->
<echo message="" />
<echo message="****************************************************************************************************" />
<echo message="* Phing Commons ${phing:commons:version}" />
<echo message="*" />
<echo message="* elnebuloso/phing-commons" />
<echo message="****************************************************************************************************" />
<echo message="" />

<if>
<isset property="project.chains" />
<then>
Expand Down
1 change: 1 addition & 0 deletions commons/targets/report/apigen.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@


<target name="report.apigen:main" hidden="true">
<delete dir="${report.apigen.out}" />
<mkdir dir="${report.apigen.out}" />

<apigen executable="${phing:commons:root}/bin/apigen.php"
Expand Down
1 change: 1 addition & 0 deletions commons/targets/report/phpcpd.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@


<target name="report.phpcpd:main" hidden="true">
<delete dir="${report.phpcpd.out}" />
<mkdir dir="${report.phpcpd.out}" />

<phpcpd>
Expand Down
1 change: 1 addition & 0 deletions commons/targets/report/phpcs.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@


<target name="report.phpcs:main" hidden="true">
<delete dir="${report.phpcs.out}" />
<mkdir dir="${report.phpcs.out}" />

<phpcodesniffer standard="${report.phpcs.ruleset}" showSniffs="true" showWarnings="true" verbosity="0" haltonerror="${report.phpcs.haltonerror}" haltonwarning="${report.phpcs.haltonwarning}">
Expand Down
1 change: 1 addition & 0 deletions commons/targets/report/phpdepend.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@


<target name="report.phpdepend:main" hidden="true">
<delete dir="${report.phpdepend.out}" />
<mkdir dir="${report.phpdepend.out}" />

<phpdepend>
Expand Down
1 change: 1 addition & 0 deletions commons/targets/report/phploc.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@


<target name="report.phploc:main" hidden="true">
<delete dir="${report.phploc.out}" />
<mkdir dir="${report.phploc.out}" />

<phploc reportType="xml" reportName="phploc" reportDirectory="${report.phploc.out}">
Expand Down
1 change: 1 addition & 0 deletions commons/targets/report/phpmd.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@


<target name="report.phpmd:main" hidden="true">
<delete dir="${report.phpmd.out}" />
<mkdir dir="${report.phpmd.out}" />

<phpmd allowedFileExtensions="php,phtml">
Expand Down
1 change: 0 additions & 1 deletion src/Commons/Phing/Task/Project/UpdateVersion.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
/**
* Class UpdateVersion
*
* @package Commons\Phing\Task\Project
* @author Jeff Tunessen <jeff.tunessen@gmail.com>
*/
class Commons_Phing_Task_Project_UpdateVersion extends Task {
Expand Down
1 change: 0 additions & 1 deletion src/Commons/Phing/Task/System/ImportChains.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
/**
* Class UpdateVersion
*
* @package Commons\Phing\Task\Project
* @author Jeff Tunessen <jeff.tunessen@gmail.com>
*/
class Commons_Phing_Task_System_ImportChains extends Task {
Expand Down

0 comments on commit 9d8f068

Please sign in to comment.