FR update to the strings THX Perig
[friendica.git] / build.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2
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" />
10         </target>
11         
12         <!-- ====================================================== -->
13         <!-- Target: prepare-test -->
14         <!-- creates directories for test reports -->
15         <!-- ====================================================== -->
16         <target name="prepare-test" depends="clean-test">
17                 <mkdir dir="report" />
18         </target>
19         
20         <!-- =================================== -->
21         <!-- Target: test -->
22         <!-- this target runs all test files -->
23         <!-- =================================== -->
24         <target name="test" depends="prepare-test">
25                 <!-- coverage-setup database="./report/coverage-database">
26                         <fileset dir=".">
27                                 <include name="**/*.php" />
28                                 <exclude name="*test.php"/>
29                                 <exclude name="index.php"/>
30                                 <exclude name="library/**"/>
31                                 <exclude name="doc/**"/>
32                                 <exclude name=".."/>
33                         </fileset>
34                 </coverage-setup -->
35                 <phpunit printsummary="true">
36                         <batchtest>
37                                 <fileset dir="tests">
38                                         <include name="*test.php" />
39                                 </fileset>
40                         </batchtest>
41                         <formatter type="xml" todir="report" outfile="testlog.xml" />
42                 </phpunit>
43                 <phpunitreport infile="report/testlog.xml" todir="report" />
44                 <!-- coverage-report outfile="report/coverage-database">
45                       <report todir="report" styledir="/home/phing/etc" />
46                     </coverage-report -->
47         </target>
48
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/" />
58         </target>
59
60         <!-- ====================================== -->
61         <!-- Target: doc -->
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">
67                         <fileset dir=".">
68                                 <include name="**/*.php" />
69                                 <include name="README"/>
70                                 <include name="INSTALL.txt"/>
71                                 <include name="LICENSE"/>
72                         </fileset>
73                 </docblox>
74         </target>
75
76 </project>