add @todo note
[phpt.git] / build.xml
blobb2f5299ced2b90310132cabbc040cd507b26cc2a
1 <?xml version="1.0" encoding="UTF-8"?>
2 <project name="PHP_Core" basedir="." default="make">
3     <taskdef classname="phing.tasks.ext.d51PearPkg2Task" name="d51pearpkg2" />
4     
5     <property name="version" value="0.1.4alpha" />
6     <property name="package_name" value="PHPT_Core" />
7     <property name="channel" value="channel.phpt.info" />
8     
9     <target name="clean">
10         <delete dir="./build/package" />
11         <delete dir="./build/export" />
12         <delete file="./${package_name}-${version}.tgz" />
13         
14         <mkdir dir="./build/package" />
15     </target>
16         
17     <target name="export" depends="clean">
18         <echo msg="Exporting SVN files" />
19         <exec command="svn export ./src ./build/export" />
20         <exec command="svn export ./scripts ./build/export/scripts" />
21         
22         <copy todir="./build/package">
23             <filterchain>
24                 <replacetokens begintoken="@@" endtoken="@@">
25                     <token key="VERSION" value="${version}" />
26                 </replacetokens>
27             </filterchain>
28             <fileset dir="./build/export">
29                 <include name="PHPT*/**" />
30                 <include name="scripts*/**" />
31             </fileset>
32         </copy>
33     </target>
34     
35     <target name="build" depends="export">
36         <phingcall target="build.package" />
37     </target>
39     <target name="export.git" depends="clean">
40         <echo msg="Creating copy of git contents" />
41          <copy todir="./build/package">
42             <filterchain>
43                 <replacetokens begintoken="@@" endtoken="@@">
44                     <token key="VERSION" value="${version}" />
45                 </replacetokens>
46             </filterchain>
47             <fileset dir="./src">
48                 <include name="PHPT*/**" />
49             </fileset>
50             <fileset dir="./">
51                 <include name="scripts/**" />
52             </fileset>
53         </copy>
54     </target>
56     <target name="build.git" depends="export.git">
57         <phingcall target="build.package" />
58     </target>
60     <target name="build.package">
61         <d51pearpkg2 dir="./build/package" baseinstalldir="/">
62             <name>${package_name}</name>
63             <summary>PHPT_Core provides the core of PHPT testing framework</summary>
64             <channel>${channel}</channel>
65             <description indentions_to_remove="16">
66                 <!--        Don't exceed this width         -->
67                 PHPT_Core provides the base parser and core set
68                 of Sections necessary to parse most .phpt test
69                 case files.  It provides:
70                 
71                 * ability to create custom sections
72                 * ability to create custom reporters
73             </description>
74             
75             <lead user="tswicegood" name="Travis Swicegood" email="development@domain51.com" />
76             <license>LGPL/CDDL</license>
77             
78             <version release="${version}" api="1.0" />
79             <stability release="alpha" api="alpha" />
80             
81             <dependencies>
82                 <php minimum_version="5.2.0" />
83                 
84                 <pear minimum_version="1.6.0" />
85             </dependencies>
86             
87             <dirroles key="scripts">script</dirroles>
88             <replacement path="scripts/phpt.php" type="pear-config" from="@php_bin@" to="php_bin" />
89             <release>
90                 <install as="phpt" name="scripts/phpt.php" />
91             </release>
93             <changelog version="0.1.4alpha" date="2008-05-27">
94                 <!--        Don't exceed this width         -->
95                 Updates to fix two bugs within PHP:
96                 
97                 * PHP's error display now happens on STDERR
98                 which causes issues when running tests that
99                 generate errors
100                 * PHPT's error handling stack would improperly
101                 display multiple errors.
102             </changelog>
103             <changelog version="0.1.3alpha" date="2008-03-25">
104                 <!--        Don't exceed this width         -->
105                 Changes for version 0.1.3alpha
107                 * Add in RETURNS section
108             </changelog>
109             
110             <changelog version="0.1.2alpha" date="2008-02-13">
111                 <!--        Don't exceed this width         -->
112                 Running changes for 0.1.2alpha as they exist in
113                 SVN:
115                 * Add test time to work Text reporter
116                 * Refactor CodeRunner_Driver_Proc
117                 * Fix issue #38 with infinite loop on INIs
118                 * Add in --php option
119                 * Renamed getDiff() to getReason() on 
120                 Case_FailureException
121                 * Adds concept of Errors within a test
122                 * Adds onParserError() to Reporter interface
123                 * Makes INI modifiable
124             </changelog>
126             <changelog version="0.1.1devel" date="2007-10-29">
127                 Running changes for SVN
128             </changelog>
129             
130             <changelog version="0.1alpha" date="2007-10-19">
131                 This is the initial alpha release of this package
132             </changelog>
133         </d51pearpkg2>
134     </target>
135     
136     <target name="make" depends="build">
137         <phingcall target="make.package" />
138     </target>
140     <target name="make.git" depends="build.git">
141         <phingcall target="make.package" />
142     </target>
144     <target name="make.package">
145         <echo msg="Creating PEAR archive file for ${package_name}" />
146         <mkdir dir="./build/package/${package_name}-${version}" />
147         <copy todir="./build/package/${package_name}-${version}">
148             <fileset dir="./build/package">
149                 <include name="PHPT/**/**" />
150                 <include name="scripts*/**" />
151             </fileset>
152         </copy>
153         <delete dir="./build/package/PHPT" />
154         <tar compression="gzip" destfile="${package_name}-${version}.tgz" basedir="./build/package" />
155     </target>
156     
157     <target name="docs" depends="export">
158         <echo msg="Creating documentation" />
159         <phpdoc title="${package_name} Docs" 
160             destdir="./apidocs"
161             sourcecode="./build"
162             output="HTML:frames:DOM/earthli"
163         >
164             <fileset dir="./build/export">
165                 <include name="**" />
166             </fileset>
167         </phpdoc>
168     </target>
169 </project>