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.2devel" />
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 <d51pearpkg2 dir="./build/package" baseinstalldir="/">
37 <name>${package_name}</name>
38 <summary>PHPT_Core provides the core of PHPT testing framework</summary>
39 <channel>${channel}</channel>
40 <description indentions_to_remove="16">
41 <!-- Don't exceed this width -->
42 PHPT_Core provides the base parser and core set
43 of Sections necessary to parse most .phpt test
44 case files. It provides:
46 * ability to create custom sections
47 * ability to create custom reporters
50 <lead user="tswicegood" name="Travis Swicegood" email="developer@domain51.com" />
51 <license>LGPL/CDDL</license>
53 <version release="${version}" api="1.0" />
54 <stability release="devel" api="devel" />
57 <php minimum_version="5.2.0" />
59 <pear minimum_version="1.6.0" />
62 <dirroles key="scripts">script</dirroles>
63 <replacement path="scripts/phpt.php" type="pear-config" from="@php_bin@" to="php_bin" />
65 <install as="phpt" name="scripts/phpt.php" />
68 <changelog version="0.1.2devel" date="2007-11-26">
69 <!-- Don't exceed this width -->
70 Running changes for 0.1.2alpha as they exist in
73 * Add test time to work Text reporter
74 * Refactor CodeRunner_Driver_Proc
77 <changelog version="0.1.1devel" date="2007-10-29">
78 Running changes for SVN
81 <changelog version="0.1alpha" date="2007-10-19">
82 This is the initial alpha release of this package
87 <target name="make" depends="build">
88 <echo msg="Creating PEAR archive file for ${package_name}" />
89 <mkdir dir="./build/package/${package_name}-${version}" />
90 <copy todir="./build/package/${package_name}-${version}">
91 <fileset dir="./build/package">
92 <include name="PHPT/**/**" />
93 <include name="scripts*/**" />
96 <delete dir="./build/package/PHPT" />
97 <tar compression="gzip" destfile="${package_name}-${version}.tgz" basedir="./build/package" />
100 <target name="docs" depends="export">
101 <echo msg="Creating documentation" />
102 <phpdoc title="${package_name} Docs"
105 output="HTML:frames:DOM/earthli"
107 <fileset dir="./build/export">
108 <include name="**" />