disabling phpunits in build.xml

This commit is contained in:
Fernando Ontiveros
2013-12-18 10:46:15 -04:00
parent 0f48ca3b0f
commit b9d7de31dc
2 changed files with 69 additions and 13 deletions

View File

@@ -2,7 +2,7 @@
<project name="ProcessMaker Michelangelo" default="build-phpcs"> <project name="ProcessMaker Michelangelo" default="build-phpcs">
<target name="build" <target name="build"
depends="prepare,lint,phploc,pdepend,phpmd-ci,phpcs-ci,phpcpd,phpdox,phpunit,phpcb"/> depends="prepare,lint,phploc,pdepend,phpmd-ci,phpcs-ci,phpcpd,phpdox"/>
<target name="build-simple" <target name="build-simple"
depends="prepare,phpunit,phpcs-ci,phploc,lint"/> depends="prepare,phpunit,phpcs-ci,phploc,lint"/>
@@ -85,7 +85,7 @@
<exec executable="phpmd"> <exec executable="phpmd">
<arg path="${basedir}/workflow/engine/src" /> <arg path="${basedir}/workflow/engine/src" />
<arg value="xml" /> <arg value="xml" />
<arg value="${basedir}/build/phpmd.xml" /> <arg value="codesize" /> <!-- ${basedir}/build/phpmd.xml" /> !-->
<arg value="--reportfile" /> <arg value="--reportfile" />
<arg value="${basedir}/build/logs/pmd.xml" /> <arg value="${basedir}/build/logs/pmd.xml" />
</exec> </exec>
@@ -109,21 +109,11 @@
</exec> </exec>
</target> </target>
<target name="phpcs-ci-old" description="Find coding standard violations using PHP_CodeSniffer creating a log file for the continuous integration server">
<exec executable="phpcs" output="/dev/null">
<arg value="--report=checkstyle" />
<arg value="--report-file=${basedir}/build/logs/checkstyle.xml" />
<arg value="--standard=PSR2" />
<arg value="-l" />
<arg path="${basedir}/workflow/engine/src" />
</exec>
</target>
<target name="phpcpd" description="Find duplicate code using PHPCPD"> <target name="phpcpd" description="Find duplicate code using PHPCPD">
<exec executable="phpcpd"> <exec executable="phpcpd">
<arg value="--log-pmd" /> <arg value="--log-pmd" />
<arg value="${basedir}/build/logs/pmd-cpd.xml" /> <arg value="${basedir}/build/logs/pmd-cpd.xml" />
<arg path="${basedir}/workflow/src" /> <arg path="${basedir}/workflow/engine/src" />
</exec> </exec>
</target> </target>

66
phpdox.xml Normal file
View File

@@ -0,0 +1,66 @@
<?xml version="1.0" encoding="utf-8" ?>
<phpdox xmlns="http://phpdox.de/config" silent="false">
<project name="ProcessMaker Michelangelo" source="${basedir}/workflow/engine/src" workdir="${basedir}/build/phpdox">
<!-- Additional configuration for the collecting process (parse of php code, generation of xml data) -->
<collector publiconly="false" backend="parser">
<include mask="*.php" />
<exclude mask="" />
<inheritance resolve="true">
</inheritance>
</collector>
<generator output="${basedir}/build/docs">
<!-- A generation process consists of one or more build tasks and of (optional) enrich sources -->
<enrich path="${basedir}/build/logs">
<source type="checkstyle">
<!-- @type - the handler for the enrichment -->
<!-- known types by default are: checkstyle, pmd, clover, phpunit -->
<!-- every enrichment source can have additional configuration nodes, most probably need a logfile -->
<!-- <file name="checkstyle.xml" /> -->
</source>
<!--
<source type="pmd">
<file name="pmd.xml" />
</source>
<source type="clover">
<file name="clover.xml" />
</source>
<source type="phpunit">
<file name="junit.xml" />
</source>
-->
</enrich>
<!-- An engine and thus build node can have additional configuration child nodes, please check the documentation for the engine to find out more -->
<!-- default engine "html" -->
<build engine="html" enabled="true" output="html">
<template dir="${phpDox.home}/templates/html" />
<file extension="html" />
</build>
<!--
<build engine="todo" enabled="true" output="todo">
<file name="todolist.txt" encoding="utf-8" />
</build>
<build engine="graph" enabled="true" output="graph">
<dot executable="/usr/bin/dot" options="" />
<file name="graph.png" options="" format="png" />
</build>
-->
</generator>
</project>
</phpdox>