Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

64 lines (60 sloc) 2.723 kb
<?xml version="1.0" encoding="UTF-8"?>
<project name="guzzle" default="package">
<target name="test-init" description="Initialize test dependencies">
<echo message="Updating composer" />
<available file="composer.phar" property="composer_exists" value="Yes" />
<if>
<equals arg1="${composer_exists}" arg2="Yes" />
<then></then>
<else>
<echo message="Installing composer" />
<exec command="curl -s http://getcomposer.org/installer | php" passthru="true" />
</else>
</if>
<exec command="php composer.phar install --dev" passthru="true" />
<copy file="phpunit.xml.dist" tofile="phpunit.xml" overwrite="false" />
</target>
<target name="phar" description="Deprecated phing method name">
<phingCall target="package" />
</target>
<target name="package" description="Create a phar with an autoloader">
<phingcall target="test-init" />
<if>
<equals arg1="${min}" arg2="true" />
<then>
<pharpackage
destfile="./guzzle-min.phar"
basedir="."
stub="phar-stub-min.php"
signature="md5">
<fileset dir=".">
<include name="src/**/*.php" />
</fileset>
<metadata>
<element name="author" value="Michael Dowling" />
</metadata>
</pharpackage>
<exec command="php -d guzzle_phar=guzzle-min.phar `which phpunit`" passthru="true" />
</then>
<else>
<pharpackage
destfile="./guzzle.phar"
basedir="."
stub="phar-stub.php"
signature="md5">
<fileset dir=".">
<include name="src/**/*.php" />
<include name="vendor/symfony/class-loader/Symfony/Component/ClassLoader/UniversalClassLoader.php" />
<include name="vendor/symfony/event-dispatcher/**/*.php" />
<include name="vendor/doctrine/common/lib/Doctrine/Common/Cache/*.php" />
<include name="vendor/monolog/monolog/src/**/*.php" />
</fileset>
<metadata>
<element name="author" value="Michael Dowling" />
</metadata>
</pharpackage>
<exec command="php -d guzzle_phar=guzzle.phar `which phpunit`" passthru="true" />
</else>
</if>
</target>
</project>
Jump to Line
Something went wrong with that request. Please try again.