Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 109 lines (92 sloc) 4.425 kB
cb0aca5 adding initial content
XirisR authored
1 <?xml version="1.0" encoding="UTF-8"?>
29be00c git-svn-id: http://mongodb-morph.googlecode.com/svn/trunk@123 406649b…
XirisR authored
2 <project name="Mongo Object" default="api-docs">
cb0aca5 adding initial content
XirisR authored
3
6b2b267 git-svn-id: http://mongodb-morph.googlecode.com/svn/trunk@62 406649b4…
XirisR authored
4 <fileset dir="unit-tests" id="unit-tests">
cb0aca5 adding initial content
XirisR authored
5 <include name="**/Test*.php" />
6 </fileset>
7
6b2b267 git-svn-id: http://mongodb-morph.googlecode.com/svn/trunk@62 406649b4…
XirisR authored
8 <fileset dir="integration-tests" id="integration-tests">
2e6ba83 git-svn-id: http://mongodb-morph.googlecode.com/svn/trunk@74 406649b4…
XirisR authored
9 <include name="**/Test*.php" />
29be00c git-svn-id: http://mongodb-morph.googlecode.com/svn/trunk@123 406649b…
XirisR authored
10 <exclude name="MongoUnit/*" />
edb927b git-svn-id: http://mongodb-morph.googlecode.com/svn/trunk@79 406649b4…
XirisR authored
11 <exclude name="IntegrationsTests.php" />
2e6ba83 git-svn-id: http://mongodb-morph.googlecode.com/svn/trunk@74 406649b4…
XirisR authored
12 </fileset>
6b2b267 git-svn-id: http://mongodb-morph.googlecode.com/svn/trunk@62 406649b4…
XirisR authored
13
cb0aca5 adding initial content
XirisR authored
14 <fileset dir="src/Morph" id="classes">
15 <include name="**/*.php" />
16 </fileset>
17
3e731ad git-svn-id: http://mongodb-morph.googlecode.com/svn/trunk@78 406649b4…
XirisR authored
18 <target name="api-docs" description="Creates Morph documentation">
cb0aca5 adding initial content
XirisR authored
19 <echo msg="Starting Creation of API Documentation" />
29be00c git-svn-id: http://mongodb-morph.googlecode.com/svn/trunk@123 406649b…
XirisR authored
20 <delete dir="doc/api" quiet="true" includeemptydirs="true" verbose="false" failonerror="false" />
cb0aca5 adding initial content
XirisR authored
21 <mkdir dir="doc" />
22 <phpdoc title="Morph Documentation" destdir="doc/api" sourcecode="yes"
23 output="HTML:frames:DOM/default" quiet="true" defaultpackagename="Morph">
24 <fileset refid="classes" />
25 <fileset dir="src/tutorials">
26 <include name="**/*.pkg" />
27 <include name="**/*.cls" />
28 </fileset>
29 </phpdoc>
30
a7146dc git-svn-id: http://mongodb-morph.googlecode.com/svn/trunk@80 406649b4…
XirisR authored
31 <echo msg="API Documentation Complete" />
cb0aca5 adding initial content
XirisR authored
32 </target>
33
29be00c git-svn-id: http://mongodb-morph.googlecode.com/svn/trunk@123 406649b…
XirisR authored
34 <target name="unit-report" description="Runs Morph unit tests">
6b2b267 git-svn-id: http://mongodb-morph.googlecode.com/svn/trunk@62 406649b4…
XirisR authored
35 <echo msg="Starting Unit Test Suite" />
cb0aca5 adding initial content
XirisR authored
36
8a141c1 phing now supports phar package creation so removing custom task
XirisR authored
37 <phpunit haltonfailure="false" haltonerror="false" printsummary="true">
cb0aca5 adding initial content
XirisR authored
38 <formatter type="xml" outfile="test-report.xml" />
39 <batchtest>
6b2b267 git-svn-id: http://mongodb-morph.googlecode.com/svn/trunk@62 406649b4…
XirisR authored
40 <fileset refid="unit-tests" />
cb0aca5 adding initial content
XirisR authored
41 </batchtest>
6b2b267 git-svn-id: http://mongodb-morph.googlecode.com/svn/trunk@62 406649b4…
XirisR authored
42 </phpunit>
cb0aca5 adding initial content
XirisR authored
43
29be00c git-svn-id: http://mongodb-morph.googlecode.com/svn/trunk@123 406649b…
XirisR authored
44 <delete dir="doc/test_report" quiet="true" includeemptydirs="true" verbose="false" failonerror="false" />
cb0aca5 adding initial content
XirisR authored
45 <mkdir dir="doc/test_report" />
6b2b267 git-svn-id: http://mongodb-morph.googlecode.com/svn/trunk@62 406649b4…
XirisR authored
46 <phpunitreport infile="test-report.xml" format="frames"
cb0aca5 adding initial content
XirisR authored
47 todir="doc/test_report" />
48 <delete file="test-report.xml" />
6b2b267 git-svn-id: http://mongodb-morph.googlecode.com/svn/trunk@62 406649b4…
XirisR authored
49 <echo msg="Unit Test Suite Complete" />
cb0aca5 adding initial content
XirisR authored
50 </target>
51
3e731ad git-svn-id: http://mongodb-morph.googlecode.com/svn/trunk@78 406649b4…
XirisR authored
52 <target name="coverage-report" description="generates unit test coverage report">
3aaf344 Fixed tests for applied patches and for recent release of PHPUnit
Xirisr@gmail.com authored
53 <exec command="phpunit --coverage-html doc/coverage/ unit-tests/UnitTests.php" checkreturn="false" />
6b2b267 git-svn-id: http://mongodb-morph.googlecode.com/svn/trunk@62 406649b4…
XirisR authored
54 </target>
55
29be00c git-svn-id: http://mongodb-morph.googlecode.com/svn/trunk@123 406649b…
XirisR authored
56 <target name="integration-report" description="Runs Morph integration tests">
6b2b267 git-svn-id: http://mongodb-morph.googlecode.com/svn/trunk@62 406649b4…
XirisR authored
57 <echo msg="Starting Integration Test Suite" />
58
29be00c git-svn-id: http://mongodb-morph.googlecode.com/svn/trunk@123 406649b…
XirisR authored
59 <phpunit haltonfailure="false" haltonerror="false" printsummary="true">
60 <formatter type="xml" outfile="integration-tests.xml" />
2e6ba83 git-svn-id: http://mongodb-morph.googlecode.com/svn/trunk@74 406649b4…
XirisR authored
61 <formatter type="plain" usefile="false" />
6b2b267 git-svn-id: http://mongodb-morph.googlecode.com/svn/trunk@62 406649b4…
XirisR authored
62 <batchtest>
63 <fileset refid="integration-tests" />
64 </batchtest>
65 </phpunit>
29be00c git-svn-id: http://mongodb-morph.googlecode.com/svn/trunk@123 406649b…
XirisR authored
66 <delete dir="doc/integration_report" quiet="true" includeemptydirs="true" verbose="false" failonerror="false" />
67 <mkdir dir="doc/integration_report" />
68 <phpunitreport infile="integration-tests.xml" format="frames" todir="doc/integration_report" />
69 <delete file="integration-tests.xml"/>
6b2b267 git-svn-id: http://mongodb-morph.googlecode.com/svn/trunk@62 406649b4…
XirisR authored
70 <echo msg="Integration Test Suite Complete" />
71 </target>
cb0aca5 adding initial content
XirisR authored
72
73 <target name="package" description="builds Morph.phar">
a7146dc git-svn-id: http://mongodb-morph.googlecode.com/svn/trunk@80 406649b4…
XirisR authored
74 <echo message="Building Morph.phar" />
cb0aca5 adding initial content
XirisR authored
75 <tstamp>
76 <format property="date.created" pattern="%Y-%m-%d %H:%I:%S" />
77 <format property="date.year" pattern="%Y" />
78 <format property="date.build" pattern="%s" />
79 </tstamp>
1b67438 git-svn-id: http://mongodb-morph.googlecode.com/svn/trunk@72 406649b4…
XirisR authored
80
81 <echo message="Creating comment free classes export" />
82 <mkdir dir="./export" />
83 <copy todir="./export">
cb0aca5 adding initial content
XirisR authored
84 <fileset refid="classes" />
1b67438 git-svn-id: http://mongodb-morph.googlecode.com/svn/trunk@72 406649b4…
XirisR authored
85 <filterchain>
86 <stripphpcomments />
87 </filterchain>
88 </copy>
89
55531de git-svn-id: http://mongodb-morph.googlecode.com/svn/trunk@75 406649b4…
XirisR authored
90 <delete file="Morph.phar" quiet="true" />
1b67438 git-svn-id: http://mongodb-morph.googlecode.com/svn/trunk@72 406649b4…
XirisR authored
91
92 <pharpackage basedir="./export" destfile="Morph.phar" compression="gzip" stub="./src/bootstrap.php" alias="Morph">
93 <fileset dir="./export">
94 <include name="**/*.php" />
95 </fileset>
cb0aca5 adding initial content
XirisR authored
96 <metadata>
67446cb updating phar file build target
XirisR authored
97 <element name="Title" value="Morph" />
98 <element name="Author" value="Jonathan Moss &lt;xirisr@gmail.com&gt;" />
99 <element name="Description" value="The Morph package provides a high level framework for working with MongoDB" />
100 <element name="Copyright" value="Jonathan Moss (c) 2008-${date.year}" />
101 <element name="Build" value="${date.build}" />
cb0aca5 adding initial content
XirisR authored
102 <element name="Created Date" value="${date.created}" />
103 </metadata>
8a141c1 phing now supports phar package creation so removing custom task
XirisR authored
104 </pharpackage>
1b67438 git-svn-id: http://mongodb-morph.googlecode.com/svn/trunk@72 406649b4…
XirisR authored
105
106 <delete dir="./export" quiet="true" includeemptydirs="true" />
cb0aca5 adding initial content
XirisR authored
107 </target>
108
109 </project>
Something went wrong with that request. Please try again.