friendica/build.xml

77 lines
2.5 KiB
XML
Raw Permalink Normal View History

<?xml version="1.0" encoding="UTF-8"?>
<project name="friendica" default="test">
2012-03-08 17:43:12 +01:00
<!-- ====================================================== -->
<!-- Target: clean-test -->
<!-- deletes directories with old test reports -->
<!-- ====================================================== -->
<target name="clean-test">
<delete dir="report" />
</target>
<!-- ====================================================== -->
<!-- Target: prepare-test -->
<!-- creates directories for test reports -->
<!-- ====================================================== -->
<target name="prepare-test" depends="clean-test">
<mkdir dir="report" />
</target>
<!-- =================================== -->
<!-- Target: test -->
<!-- this target runs all test files -->
<!-- =================================== -->
2012-03-08 17:43:12 +01:00
<target name="test" depends="prepare-test">
2012-03-09 12:16:58 +01:00
<!-- coverage-setup database="./report/coverage-database">
2012-03-08 17:43:12 +01:00
<fileset dir=".">
<include name="**/*.php" />
<exclude name="*test.php"/>
2012-03-09 12:16:58 +01:00
<exclude name="index.php"/>
<exclude name="library/**"/>
2012-03-08 17:43:12 +01:00
<exclude name="doc/**"/>
2012-03-09 12:16:58 +01:00
<exclude name=".."/>
2012-03-08 17:43:12 +01:00
</fileset>
2012-03-09 12:16:58 +01:00
</coverage-setup -->
<phpunit printsummary="true">
2012-03-08 17:43:12 +01:00
<batchtest>
<fileset dir="tests">
<include name="*test.php" />
</fileset>
</batchtest>
<formatter type="xml" todir="report" outfile="testlog.xml" />
</phpunit>
<phpunitreport infile="report/testlog.xml" todir="report" />
2012-03-09 12:16:58 +01:00
<!-- coverage-report outfile="report/coverage-database">
2012-03-08 17:43:12 +01:00
<report todir="report" styledir="/home/phing/etc" />
2012-03-09 12:16:58 +01:00
</coverage-report -->
</target>
<!-- ===================================================== -->
<!-- Target: clean-doc -->
<!-- this target removes documentation from a previous run -->
<!-- ===================================================== -->
<target name="doc-clean">
<echo msg="Removing old documentation..." />
<delete dir="./doc/api/" />
<echo msg="Generate documentation directory..." />
<mkdir dir="./doc/api/" />
</target>
<!-- ====================================== -->
<!-- Target: doc -->
<!-- this target builds all documentation -->
<!-- ====================================== -->
<target name="doc" depends="doc-clean">
<echo msg="Building documentation..." />
<docblox title="Friendica API" destdir="./doc/api">
<fileset dir=".">
<include name="**/*.php" />
2012-03-09 12:16:58 +01:00
<include name="README"/>
<include name="INSTALL.txt"/>
<include name="LICENSE"/>
</fileset>
</docblox>
</target>
</project>