<?xml version="1.0" encoding="UTF-8"?>
<project name="Culturefeed" default="test">
    <fileset id="php" dir=".">
        <include name="**/*.php"/>
        <exclude name="vendor/"/>
    </fileset>

    <target name="test">
        <exec command="composer validate" passthru="true" />
        <phplint>
            <fileset refid="php"/>
        </phplint>
        <phpcodesniffer
                standard="phpcs-ruleset.xml"
                format="full"
                allowedFileExtensions="php"
                haltonerror="true">
            <fileset refid="php"/>
        </phpcodesniffer>
    </target>

    <target name="docs">
        <exec passthru="true" command="apigen generate --source src --destination docs/api --title='UDB3 PHP library'" />
    </target>
</project>

<?xml version="1.0" encoding="UTF-8"?>
<project name="Culturefeed" default="test">
    <fileset id="php" dir=".">
        <include name="src/**/*.php"/>
        <include name="test/**/*.php"/>
    </fileset>

    <target name="test">
        <phingcall target="composer-validate"/>
        <phingcall target="lint"/>
        <phingcall target="coding-standards"/>
    </target>

    <target name="composer-validate">
        <exec command="composer validate" passthru="true" />
    </target>

    <target name="lint">
        <phplint>
            <fileset refid="php"/>
        </phplint>
    </target>

    <target name="coding-standards">
        <phpcodesniffer
                standard="phpcs-ruleset.xml"
                format="full"
                allowedFileExtensions="php"
                haltonerror="true">
            <fileset refid="php"/>
        </phpcodesniffer>
    </target>

    <target name="docs">
        <exec passthru="true" command="apigen generate --source src --destination docs/api --title='UDB3 PHP library'" />
    </target>
</project>

Split off coding standards, lint and composer validation tasks so they can be started individually as well
Split off coding standards, lint and composer validation tasks so they can be started individually as well
