Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 6b2b2675e8
Fetching contributors…

Cannot retrieve contributors at this time

93 lines (75 sloc) 3.428 kb
<?xml version="1.0" encoding="UTF-8"?>
<project name="Mongo Object" default="doc" basedir=".">
<taskdef classname="phar.PharPackageTask2" name="pharpackage2"/>
<fileset dir="unit-tests" id="unit-tests">
<include name="**/Test*.php" />
<fileset dir="integration-tests" id="integration-tests">
<include name="**/Test*.php" />
<exclude name="MongoTestCase.php" />
<fileset dir="src/Morph" id="classes">
<include name="**/*.php" />
<target name="doc" description="Creates Morph documentation">
<echo msg="Starting Creation of API Documentation" />
<echo msg="Cleaning out old documentation" />
<delete dir="doc/api" quiet="true" includeemptydirs="true" verbose="false"
failonerror="false" />
<mkdir dir="doc" />
<phpdoc title="Morph Documentation" destdir="doc/api" sourcecode="yes"
output="HTML:frames:DOM/default" quiet="true" defaultpackagename="Morph">
<fileset refid="classes" />
<fileset dir="src/tutorials">
<include name="**/*.pkg" />
<include name="**/*.cls" />
<echo msg="API Documentation Creation Complete" />
<target name="unit-test" description="Runs Morph unit tests">
<echo msg="Starting Unit Test Suite" />
<phpunit haltonfailure="false" haltonerror="false">
<formatter type="xml" outfile="test-report.xml" />
<fileset refid="unit-tests" />
<delete dir="doc/test_report" quiet="true" includeemptydirs="true"
verbose="false" failonerror="false" />
<mkdir dir="doc/test_report" />
<phpunitreport infile="test-report.xml" format="frames"
todir="doc/test_report" />
<delete file="test-report.xml" />
<echo msg="Unit Test Suite Complete" />
<target name="coverage" description="generates unit test coverage report">
<exec command="phpunit --coverage-html doc/coverage/ unit-tests/AllTests.php" checkreturn="false" />
<target name="integration-test" description="Runs Morph integration tests">
<echo msg="Starting Integration Test Suite" />
<phpunit haltonfailure="false" haltonerror="false" printsummary="true">
<fileset refid="integration-tests" />
<echo msg="Integration Test Suite Complete" />
<target name="package" description="builds Morph.phar">
<format property="date.created" pattern="%Y-%m-%d %H:%I:%S" />
<format property="date.year" pattern="%Y" />
<format property="" pattern="%s" />
<pharpackage2 basedir="./src/Morph" destfile="Morph.phar"
compression="gzip" customStub="./src/Bootstrap.php" alias="Morph">
<fileset refid="classes" />
<element name="Created Date" value="${date.created}" />
<element name="Copyright" value="Jonathan Moss (c) 2008-${date.year}" />
<element name="Build" value="${}" />
<target name="all" description="builds everything" depends="unit-test, coverage, doc, package" />
Jump to Line
Something went wrong with that request. Please try again.