1 <?xml version="1.0" encoding="UTF-8"?>
3 <project name="friendica" default="test">
4 <!-- ====================================================== -->
5 <!-- Target: clean-test -->
6 <!-- deletes directories with old test reports -->
7 <!-- ====================================================== -->
8 <target name="clean-test">
9 <delete dir="report" />
12 <!-- ====================================================== -->
13 <!-- Target: prepare-test -->
14 <!-- creates directories for test reports -->
15 <!-- ====================================================== -->
16 <target name="prepare-test" depends="clean-test">
17 <mkdir dir="report" />
20 <!-- =================================== -->
22 <!-- this target runs all test files -->
23 <!-- =================================== -->
24 <target name="test" depends="prepare-test">
25 <!-- coverage-setup database="./report/coverage-database">
27 <include name="**/*.php" />
28 <exclude name="*test.php"/>
29 <exclude name="index.php"/>
30 <exclude name="library/**"/>
31 <exclude name="doc/**"/>
35 <phpunit printsummary="true">
38 <include name="*test.php" />
41 <formatter type="xml" todir="report" outfile="testlog.xml" />
43 <phpunitreport infile="report/testlog.xml" todir="report" />
44 <!-- coverage-report outfile="report/coverage-database">
45 <report todir="report" styledir="/home/phing/etc" />
49 <!-- ===================================================== -->
50 <!-- Target: clean-doc -->
51 <!-- this target removes documentation from a previous run -->
52 <!-- ===================================================== -->
53 <target name="doc-clean">
54 <echo msg="Removing old documentation..." />
55 <delete dir="./doc/api/" />
56 <echo msg="Generate documentation directory..." />
57 <mkdir dir="./doc/api/" />
60 <!-- ====================================== -->
62 <!-- this target builds all documentation -->
63 <!-- ====================================== -->
64 <target name="doc" depends="doc-clean">
65 <echo msg="Building documentation..." />
66 <docblox title="Friendica API" destdir="./doc/api">
68 <include name="**/*.php" />
69 <include name="README"/>
70 <include name="INSTALL.txt"/>
71 <include name="LICENSE"/>