Skip to content
Newer
Older
100644 83 lines (71 sloc) 3.43 KB
4c46e77 @mtdowling Guzzle 2.0
mtdowling authored Jan 14, 2012
1 <?xml version="1.0" encoding="UTF-8"?>
eabe684 @mtdowling [Common] [BC] Renaming ZendLogAdapter to Zf1LogAdater. Adding a Zf2Lo…
mtdowling authored Apr 14, 2012
2 <project name="guzzle" default="package">
9320466 @claylo refactored build including git subsplit management and PEAR package g…
claylo authored Oct 11, 2012
3 <!-- set local values, like git location -->
4 <property file="phing/build.properties" override="true" />
5
95bd530 @mtdowling Updating version for UA string. Fixing test that was not mocked corre…
mtdowling authored Jun 26, 2012
6 <property name="dir.output" value="${project.basedir}/build/artifacts" />
9320466 @claylo refactored build including git subsplit management and PEAR package g…
claylo authored Oct 11, 2012
7 <property name="dir.imports" value="${project.basedir}/phing/imports" />
8 <property name="dir.bin" value="${project.basedir}/bin" />
9 <property name="repo.dir" value="${project.basedir}" />
10
11 <import file="${dir.imports}/dependencies.xml"/>
12 <import file="${dir.imports}/test.xml"/>
13 <import file="${dir.imports}/deploy.xml"/>
14 <!-- <import file="${dir.imports}/metrics.xml"/> -->
15
eabe684 @mtdowling [Common] [BC] Renaming ZendLogAdapter to Zf1LogAdater. Adding a Zf2Lo…
mtdowling authored Apr 15, 2012
16
95bd530 @mtdowling Updating version for UA string. Fixing test that was not mocked corre…
mtdowling authored Jun 27, 2012
17 <target name="test" description="Run unit tests" depends="test-init">
18 <exec passthru="true" command="phpunit" />
9320466 @claylo refactored build including git subsplit management and PEAR package g…
claylo authored Oct 11, 2012
19 <testserver cmd="${cmd.testserver}" action="stop" />
eabe684 @mtdowling [Common] [BC] Renaming ZendLogAdapter to Zf1LogAdater. Adding a Zf2Lo…
mtdowling authored Apr 15, 2012
20 </target>
21
95bd530 @mtdowling Updating version for UA string. Fixing test that was not mocked corre…
mtdowling authored Jun 27, 2012
22 <target name="test-init" depends="install-dependencies" description="Initialize test dependencies">
9320466 @claylo refactored build including git subsplit management and PEAR package g…
claylo authored Oct 11, 2012
23 <testserver cmd="${cmd.testserver}" action="start" />
95bd530 @mtdowling Updating version for UA string. Fixing test that was not mocked corre…
mtdowling authored Jun 27, 2012
24 <copy file="phpunit.xml.dist" tofile="phpunit.xml" overwrite="false" />
25 </target>
26
9320466 @claylo refactored build including git subsplit management and PEAR package g…
claylo authored Oct 11, 2012
27 <target name="build-init" description="Initialize local phing properties">
28 <copy file="phing/build.properties.dist" tofile="phing/build.properties" overwrite="false" />
95bd530 @mtdowling Updating version for UA string. Fixing test that was not mocked corre…
mtdowling authored Jun 27, 2012
29 </target>
30
31 <target name="clean">
32 <delete dir="${dir.output}"/>
33 </target>
34
9320466 @claylo refactored build including git subsplit management and PEAR package g…
claylo authored Oct 11, 2012
35 <target name="prepare" depends="clean,test-init,build-init">
95bd530 @mtdowling Updating version for UA string. Fixing test that was not mocked corre…
mtdowling authored Jun 27, 2012
36 <mkdir dir="${dir.output}"/>
37 <mkdir dir="${dir.output}/logs" />
38 </target>
39
40 <target name="coverage" depends="prepare">
41 <exec passthru="true" command="phpunit --coverage-html=${dir.output}/coverage --coverage-clover=${dir.output}/logs/clover.xml" />
42 </target>
43
44 <target name="view-coverage">
45 <exec passthru="true" command="open ${dir.output}/coverage/index.html" />
46 </target>
47
48 <target name="package" depends="test-init" description="Create a phar with an autoloader">
49 <pharpackage
50 destfile="${dir.output}/guzzle.phar"
51 basedir="."
52 stub="phar-stub.php"
53 signature="md5">
54 <fileset dir=".">
55 <include name="src/**/*.php" />
56 <include name="vendor/symfony/class-loader/Symfony/Component/ClassLoader/UniversalClassLoader.php" />
57 <include name="vendor/symfony/event-dispatcher/**/*.php" />
58 <include name="vendor/doctrine/common/lib/Doctrine/Common/Cache/*.php" />
59 <include name="vendor/monolog/monolog/src/**/*.php" />
60 </fileset>
61 <metadata>
62 <element name="author" value="Michael Dowling" />
63 </metadata>
64 </pharpackage>
65 <exec command="php -d guzzle_phar=${dir.output}/guzzle.phar `which phpunit`" passthru="true" />
66 </target>
67
68 <target name="package-min" depends="test-init" description="Create a minimal phar">
69 <pharpackage
70 destfile="${dir.output}/guzzle-min.phar"
71 basedir="."
72 stub="phar-stub-min.php"
73 signature="md5">
74 <fileset dir=".">
75 <include name="src/**/*.php" />
76 </fileset>
77 <metadata>
78 <element name="author" value="Michael Dowling" />
79 </metadata>
80 </pharpackage>
81 <exec command="php -d guzzle_phar=${dir.output}/guzzle-min.phar `which phpunit`" passthru="true" />
82 </target>
9320466 @claylo refactored build including git subsplit management and PEAR package g…
claylo authored Oct 11, 2012
83 </project>
Something went wrong with that request. Please try again.