<?xml version="1.0" encoding="UTF-8" ?>
<project name="case-converter-twig" description="Twig extension for Case-Converter" default="help">
<target name="qa" depends="php:lint,phpunit:run,phpstan:analyze"/>
<target name="php:lint">
<phplint haltonfailure="true" deprecatedAsError="true">
<fileset dir=".">
<include name="**/*.php"/>
<exclude name="vendor/**"/>
</fileset>
</phplint>
</target>
<target name="phpunit:run" description="Runs PHPUnit tests">
<exec executable="vendor/bin/phpunit" passthru="true" checkreturn="true"/>
</target>
<target name="phpstan:analyze" description="Analyse at max level">
<exec executable="vendor/bin/phpstan" passthru="true" checkreturn="true">
<arg line="--level=max"/>
<arg value="analyze"/>
<arg value="--no-progress"/>
<arg path="src"/>
</exec>
</target>
<target name="help">
<visualizer format="svg"/>
<exec executable="xdg-open" spawn="true">
<arg file="build.svg"/>
</exec>
</target>
</project>
|