Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 120aabd63f
Fetching contributors…

Cannot retrieve contributors at this time

57 lines (48 sloc) 1.788 kb
<?xml version="1.0"?>
<project name="HTTP_Header2" default="build" basedir=".">
<condition property="phpunit.bin" value="phpunit.bat" else="phpunit">
<os family="windows"/>
</condition>
<condition property="pear.bin" value="pear.bat" else="pear">
<os family="windows"/>
</condition>
<target name="clean" description="Clean up and create artifact directories">
<delete dir="${basedir}/lib" />
<delete dir="${basedir}/build/api"/>
<delete dir="${basedir}/build/code-browser"/>
<delete dir="${basedir}/build/coverage"/>
<delete dir="${basedir}/build/logs"/>
<delete dir="${basedir}/build/pdepend"/>
<delete dir="${basedir}/build"/>
<mkdir dir="${basedir}/lib/" />
<mkdir dir="${basedir}/build"/>
<mkdir dir="${basedir}/build/api"/>
<mkdir dir="${basedir}/build/code-browser"/>
<mkdir dir="${basedir}/build/coverage"/>
<mkdir dir="${basedir}/build/logs"/>
<mkdir dir="${basedir}/build/pdepend"/>
<exec executable="git">
<arg value="clone" />
<arg value="git://github.com/pear/HTTP2.git" />
<arg value="lib/HTTP2" />
</exec>
</target>
<target name="phpcs-ci" description="Find coding standard violations using PHP_CodeSniffer">
<exec executable="phpcs" output="/dev/null">
<arg value="--report=checkstyle" />
<arg value="--report-file=${basedir}/build/logs/checkstyle.xml" />
<arg path="${basedir}/HTTP" />
</exec>
</target>
<target name="phpunit">
<exec dir="${basedir}" executable="${phpunit.bin}" failonerror="true">
<arg line="."/>
</exec>
</target>
<target name="package">
<exec dir="${basedir}/build" executable="${pear.bin}" failonerror="true">
<arg line="package ../package.xml"/>
</exec>
</target>
<target name="build" depends="clean,phpunit,phpcs-ci,package"/>
</project>
Jump to Line
Something went wrong with that request. Please try again.