Friendica Communications Platform (please note that this is a clone of the repository at github, issues are handled there)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

build.xml 2.5KB

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