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" />
5 <property name="version" value="0.1.4alpha" />
6 <property name="package_name" value="PHPT_Core" />
7 <property name="channel" value="channel.phpt.info" />
10 <delete dir="./build/package" />
11 <delete dir="./build/export" />
12 <delete file="./${package_name}-${version}.tgz" />
14 <mkdir dir="./build/package" />
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" />
22 <copy todir="./build/package">
24 <replacetokens begintoken="@@" endtoken="@@">
25 <token key="VERSION" value="${version}" />
28 <fileset dir="./build/export">
29 <include name="PHPT*/**" />
30 <include name="scripts*/**" />
35 <target name="build" depends="export">
36 <phingcall target="build.package" />
39 <target name="export.git" depends="clean">
40 <echo msg="Creating copy of git contents" />
41 <copy todir="./build/package">
43 <replacetokens begintoken="@@" endtoken="@@">
44 <token key="VERSION" value="${version}" />
48 <include name="PHPT*/**" />
51 <include name="scripts/**" />
56 <target name="build.git" depends="export.git">
57 <phingcall target="build.package" />
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:
71 * ability to create custom sections
72 * ability to create custom reporters
75 <lead user="tswicegood" name="Travis Swicegood" email="development@domain51.com" />
76 <license>LGPL/CDDL</license>
78 <version release="${version}" api="1.0" />
79 <stability release="alpha" api="alpha" />
82 <php minimum_version="5.2.0" />
84 <pear minimum_version="1.6.0" />
87 <dirroles key="scripts">script</dirroles>
88 <replacement path="scripts/phpt.php" type="pear-config" from="@php_bin@" to="php_bin" />
90 <install as="phpt" name="scripts/phpt.php" />
93 <changelog version="0.1.4alpha" date="2008-05-27">
94 <!-- Don't exceed this width -->
95 Updates to fix two bugs within PHP:
97 * PHP's error display now happens on STDERR
98 which causes issues when running tests that
100 * PHPT's error handling stack would improperly
101 display multiple errors.
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
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
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
126 <changelog version="0.1.1devel" date="2007-10-29">
127 Running changes for SVN
130 <changelog version="0.1alpha" date="2007-10-19">
131 This is the initial alpha release of this package
136 <target name="make" depends="build">
137 <phingcall target="make.package" />
140 <target name="make.git" depends="build.git">
141 <phingcall target="make.package" />
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*/**" />
153 <delete dir="./build/package/PHPT" />
154 <tar compression="gzip" destfile="${package_name}-${version}.tgz" basedir="./build/package" />
157 <target name="docs" depends="export">
158 <echo msg="Creating documentation" />
159 <phpdoc title="${package_name} Docs"
162 output="HTML:frames:DOM/earthli"
164 <fileset dir="./build/export">
165 <include name="**" />