Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
53 lines (47 sloc) 1.66 KB
<?xml version="1.0" encoding="UTF-8"?>
<project name="PEAR2/Pyrus" default="build" basedir=".">
<target name="build" depends="checkphp,phar,phpt,php-documentor"/>
<target name="dist" depends="phar" />
<target name="checkphp">
<apply executable="php" failonerror="true">
<arg value="-l" />
<fileset dir="${basedir}/src">
<include name="**/*.php" />
</fileset>
</apply>
</target>
<target name="phpcs">
<exec executable="phpcs" dir="${basedir}" output="${basedir}/phpcs.xml">
<arg line="--report=checkstyle --standard=PEAR src"/>
</exec>
</target>
<target name="phar">
<exec executable="php" dir="${basedir}" failonerror="on">
<arg line="pyrus.phar make" />
</exec>
<exec executable="php" dir="${basedir}" failonerror="on">
<arg line="-dphar.readonly=0 pyrus.phar package --phar -o newpyrus.phar" />
</exec>
<exec executable="mv" dir="${basedir}" failonerror="on">
<arg line="newpyrus.phar pyrus.phar" />
</exec>
<exec executable="chmod" dir="${basedir}" failonerror="on">
<arg line="+x pyrus.phar" />
</exec>
</target>
<target name="checkout">
<exec executable="svn" dir="${basedir}">
<arg line="up" />
</exec>
</target>
<target name="phpt">
<exec executable="php" dir="${basedir}" failonerror="on">
<arg line="pyrus.phar run-phpt -m" />
</exec>
</target>
<target name="php-documentor">
<exec executable="phpdoc" dir="${basedir}/src">
<arg line="-ct type -ue on -t ${basedir}/docs -d ${basedir}/src -po PEAR2_Pyrus -ti 'Pyrus PEAR2 Installer API Documentation'"/>
</exec>
</target>
</project>