Skip to content
This repository has been archived by the owner on Apr 11, 2018. It is now read-only.

Commit

Permalink
Merge branch 'master' into APOLLO-813_Add_task_description
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulVM committed May 16, 2014
2 parents 85770c3 + adb6a47 commit 44dc4ce
Show file tree
Hide file tree
Showing 8 changed files with 535 additions and 36 deletions.
35 changes: 13 additions & 22 deletions build/build.xml
Expand Up @@ -2,7 +2,7 @@

<project name="opg-core-back-end" default="build">

<target name="build" depends="clean,prepare,phpunit,phpmd-ci,phpcs-ci,phpcpd,phpcb,phpdocs"/>
<target name="build" depends="clean,prepare,phpunit,phpmd-ci,phpcs-ci,phpcpd,phpcb"/>

<target name="clean">
<delete dir="${basedir}/output"/>
Expand Down Expand Up @@ -41,7 +41,7 @@
</target>

<target name="phpunit">
<exec executable="phpunit" failonerror="true">
<exec executable="${basedir}/../vendor/bin/phpunit" failonerror="true">
<arg line="--configuration '${basedir}/../tests/phpunit.xml'
--log-junit '${basedir}/output/logs/junit.xml'
--coverage-clover '${basedir}/output/coverage/clover.xml'
Expand All @@ -67,8 +67,8 @@
</target>

<target name="phpmd">
<exec executable="phpmd" failonerror="false">
<arg line="'${basedir}/../src/Application'
<exec executable="${basedir}/../vendor/bin/phpmd" failonerror="false">
<arg line="'${basedir}/../src/OPG'
text
--reportfile
'${basedir}/output/phpmd/phpmd-report.txt'
Expand All @@ -77,8 +77,8 @@
</target>

<target name="phpmd-ci">
<exec executable="phpmd" failonerror="false" output="/dev/null">
<arg line="'${basedir}/../src/Application'
<exec executable="${basedir}/../vendor/bin/phpmd" failonerror="false" output="/dev/null">
<arg line="'${basedir}/../src/OPG'
'${basedir}/../src/Opg'
xml
'${basedir}/phpmd.xml'
Expand All @@ -88,15 +88,15 @@
</target>

<target name="phpdcd">
<exec executable="phpdcd" failonerror="false">
<exec executable="${basedir}/../vendor/bin/phpdcd" failonerror="false">
<arg line="'${basedir}/../src/'
--reportfile
'${basedir}/output/phpdcd/phpdcd.txt'" />
</exec>
</target>

<target name="phpcs">
<exec executable="phpcs" failonerror="false">
<exec executable="${basedir}/../vendor/bin/phpcs" failonerror="false">
<arg line="--standard='${basedir}/phpcs.xml'
--report=full
--report-file='${basedir}/output/phpcs/checkstyle.txt'
Expand All @@ -105,7 +105,7 @@
</target>

<target name="phpcs-ci">
<exec executable="phpcs" failonerror="false" output="/dev/null">
<exec executable="${basedir}/../vendor/bin/phpcs" failonerror="false" output="/dev/null">
<arg line="--report=checkstyle
--report-file='${basedir}/output/phpcs/checkstyle.xml'
--standard='${basedir}/phpcs.xml'
Expand All @@ -114,27 +114,18 @@
</target>

<target name="phpcpd">
<exec executable="phpcpd" failonerror="false">
<exec executable="${basedir}/../vendor/bin/phpcpd" failonerror="false">
<arg line="--log-pmd '${basedir}/output/phpcpd/php-cpd.xml'
'${basedir}/../src/'" />
</exec>
</target>

<target name="phpcb">
<exec executable="phpcb" failonerror="false">
<exec executable="${basedir}/../vendor/bin/phpcb" failonerror="false">
<arg line="
--output '${basedir}/output/code-browser'
--source '${basedir}/../src'" />
</exec>
</target>

<target name="phpdocs">
<exec executable="${basedir}/../vendor/bin/phpdoc.php" failonerror="false">
<arg line="--log '${basedir}/output/logs/phpdocs.log'
-t '${basedir}/output/phpdocs'
-d '${basedir}/../src'" />
</exec>
</target>


</project>

</project>
9 changes: 8 additions & 1 deletion composer.json
Expand Up @@ -20,7 +20,14 @@
"phpunit/phpunit": "3.7.*",
"mockery/mockery" : "0.8.0",
"phpdocumentor/phpdocumentor" : "2.*",
"satooshi/php-coveralls": "dev-master"
"satooshi/php-coveralls": "dev-master",
"phpmd/phpmd" : "1.4.*",
"pdepend/pdepend" : "1.1.0",
"phploc/phploc" : "2.0.5",
"squizlabs/php_codesniffer": "1.5.3",
"sebastian/phpdcd": "1.0.2",
"sebastian/phpcpd": "2.0.1",
"mayflower/php-codebrowser": "1.1.0"
},
"autoload" : {
"psr-0" : {
Expand Down

0 comments on commit 44dc4ce

Please sign in to comment.