Location: PHPKode > projects > Enlight > ShopwareAG-Enlight-70830b7/BuildFiles/build.xml
<?xml version="1.0" encoding="utf-8"?>
<project name="Enlight" basedir="../" default="build">

    <property name="test.dir.enlight" location="${basedir}/Tests/Enlight" />
    <property name="test.dir.smarty" location="${basedir}/Tests/Smarty" />

    <property name="log.dir" location="${test.dir.enlight}/Logs" />
    <property name="build.dir" location="${basedir}/BuildFiles" />

    <property name="library.dir" location="${basedir}/Library" />
    <property name="library.dir.enlight" location="${library.dir}/Enlight" />

    <property name="application.dir" location="${basedir}/Apps" />

    <target name="test">
        <parallel>
            <antcall target="test-static" />
            <antcall target="test-unit" />
        </parallel>
    </target>

    <target name="test-unit" depends="unit-library,unit-enlight" />

    <target name="unit-library">
        <exec executable="phpunit" failonerror="false" dir="${test.dir.smarty}">
            <arg value="--include-path" />
            <arg value="${library.dir}" />
            <arg value="smartytests.php" />
        </exec>
    </target>

    <target name="unit-enlight">
        <exec executable="phpunit" failonerror="true" dir="${test.dir.enlight}" />
    </target>

    <target name="test-static">
        <parallel>
            <antcall target="static-phpcs" />
            <antcall target="static-phpmd" />
            <antcall target="static-phpcpd" />
            <antcall target="static-phploc" />
            <antcall target="static-docblox" />
        </parallel>
    </target>

    <target name="static-phpcs">
        <exec executable="phpcs" failonerror="false">
            <arg value="--standard=${build.dir}" />
            <arg value="--report=checkstyle" />
            <arg value="--report-file=${log.dir}/checkstyle.xml" />
            <!--arg value="${application.dir}" /-->
            <arg value="${library.dir.enlight}" />
        </exec>
    </target>

    <target name="static-phpmd">
        <exec executable="phpmd" failonerror="false">
            <arg value="${application.dir},${library.dir.enlight}" />
            <arg value="xml" />
            <arg value="codesize,design,unusedcode" />
            <arg value="--reportfile" />
            <arg value="${log.dir}/pmd.xml" />
        </exec>
    </target>

    <target name="static-phpcpd">
        <exec executable="phpcpd" failonerror="false" output="/dev/null">
            <arg value="--log-pmd" />
            <arg value="${log.dir}/cpd.xml" />
            <arg value="${application.dir}" />
            <arg value="${library.dir.enlight}" />
        </exec>
    </target>

    <target name="static-phploc">
        <exec executable="phploc">
            <arg value="--log-xml" />
            <arg value="${log.dir}/loc.xml" />
            <arg value="--log-csv" />
            <arg value="${log.dir}/loc.csv" />
            <arg value="--count-tests" />
            <arg value="${library.dir.enlight}" />
        </exec>
    </target>

    <target name="static-docblox">
        <exec executable="docblox">
            <arg value="project:run" />
            <arg value="--template" />
            <arg value="checkstyle" />
            <arg value="-t" />
            <arg value="${log.dir}/docblox/" />
            <arg value="-d" />
            <arg value="${library.dir.enlight}" />
        </exec>
    </target>

    <target name="build" depends="test,build-phpdoc,build-phpcb" />

    <target name="build-phpdoc">
        <exec executable="phpdoc">
            <arg value="--quiet" />
            <arg value="--directory" />
            <arg value="${library.dir.enlight}" />
            <arg value="--target" />
            <arg value="${log.dir}/api" />
            <arg value="-o" />
            <arg value="HTML:frames/Extjs:default" />
            <arg value="--sourcecode" />
            <arg value="on" />
        </exec>
    </target>

    <target name="build-phpcb">
        <exec executable="phpcb">
            <arg value="--log" />
            <arg value="${log.dir}" />
            <arg value="--output" />
            <arg value="${log.dir}/code-browser" />
            <arg value="--source" />
            <arg value="${library.dir.enlight}" />
        </exec>
    </target>
</project>
Return current item: Enlight