<?xml version="1.0" encoding="UTF-8"?>
<project name="Doctrine Diagram Bundle" default="help" phingVersion="3">
<description>Create diagrams from your doctrine database</description>
<target name="setup" depends="composer:install"/>
<target name="qa" depends="composer:validate,composer:normalize,phpstan:analyse"/>
<target name="phpstan:analyse" description="Analyse source code">
<exec executable="vendor/bin/phpstan" passthru="true" checkreturn="true">
<arg value="analyse"/>
<arg value="--no-progress"/>
<arg value="--ansi"/>
<arg value="--level=max"/>
<arg path="src"/>
</exec>
</target>
<target name="composer:install" description="PHP dependencies">
<composer command="install">
<arg value="--no-interaction"/>
<arg value="--prefer-dist"/>
<arg value="--no-progress"/>
<arg value="--ansi"/>
</composer>
</target>
<target name="composer:validate" description="Validate composer.json">
<composer command="validate">
<arg value="--ansi"/>
</composer>
</target>
<target name="composer:normalize" description="Normalize composer.json">
<composer command="normalize">
<arg value="--ansi"/>
<arg value="--diff"/>
<arg value="--indent-size=2"/>
<arg value="--indent-style=space"/>
</composer>
</target>
<target name="help">
<uptodate property="uptodate.visualizer" srcfile="build.xml" targetfile="docs/build.svg"/>
<runtarget target="visualizer"/>
<open path="doc/build.svg"/>
</target>
<target name="visualizer" unless="uptodate.visualizer" description="Create buildfile map">
<visualizer format="svg" destination="docs"/>
</target>
</project>
|