1
0
mirror of https://github.com/guzzle/guzzle.git synced 2025-02-12 11:30:49 +01:00
guzzle/build.xml

66 lines
2.8 KiB
XML

<?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="COMPOSER=composer-test.json php composer.phar install" 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="."
alias="Guzzle"
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"
alias="Guzzle"
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/symfony/validator/**/*.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>