forked from guzzle/guzzle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
66 lines (63 loc) · 2.8 KB
/
build.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
<?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="."
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>