Teknik is a suite of services with attractive and functional interfaces. https://www.teknik.io/
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 3.0KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!-- Generated by PHP Project Wizard (PPW) 1.0.4 on Fri Mar 11 16:37:31 CET 2011 -->
  3. <project name="fDOMDocument" default="build" basedir=".">
  4. <property name="source" value="src"/>
  5. <target name="clean" description="Clean up and create artifact directories">
  6. <delete dir="${basedir}/build/api"/>
  7. <delete dir="${basedir}/build/code-browser"/>
  8. <delete dir="${basedir}/build/coverage"/>
  9. <delete dir="${basedir}/build/logs"/>
  10. <delete dir="${basedir}/build/pdepend"/>
  11. <mkdir dir="${basedir}/build/api"/>
  12. <mkdir dir="${basedir}/build/code-browser"/>
  13. <mkdir dir="${basedir}/build/coverage"/>
  14. <mkdir dir="${basedir}/build/logs"/>
  15. <mkdir dir="${basedir}/build/pdepend"/>
  16. </target>
  17. <target name="phpab">
  18. <exec executable="phpab">
  19. <arg line='-o autoload.php -b . src' />
  20. </exec>
  21. </target>
  22. <target name="phpunit" description="Run unit tests using PHPUnit and generates junit.xml and clover.xml">
  23. <exec executable="phpunit" failonerror="true"/>
  24. </target>
  25. <target name="parallelTasks" description="Run the pdepend, phpmd, phpcpd, phpcs, phpdoc and phploc tasks in parallel using a maximum of 2 threads.">
  26. <parallel threadCount="2">
  27. <sequential>
  28. <antcall target="pdepend"/>
  29. <antcall target="phpmd"/>
  30. </sequential>
  31. <antcall target="phpcpd"/>
  32. <antcall target="phpcs"/>
  33. <antcall target="phploc"/>
  34. </parallel>
  35. </target>
  36. <target name="pdepend" description="Generate jdepend.xml and software metrics charts using PHP_Depend">
  37. <exec executable="pdepend">
  38. <arg line="--jdepend-xml=${basedir}/build/logs/jdepend.xml
  39. --jdepend-chart=${basedir}/build/pdepend/dependencies.svg
  40. --overview-pyramid=${basedir}/build/pdepend/overview-pyramid.svg
  41. ${source}" />
  42. </exec>
  43. </target>
  44. <target name="phpmd" description="Generate pmd.xml using PHPMD">
  45. <exec executable="phpmd">
  46. <arg line="${source}
  47. xml
  48. codesize,design,naming,unusedcode
  49. --reportfile ${basedir}/build/logs/pmd.xml" />
  50. </exec>
  51. </target>
  52. <target name="phpcpd" description="Generate pmd-cpd.xml using PHPCPD">
  53. <exec executable="phpcpd">
  54. <arg line="--log-pmd ${basedir}/build/logs/pmd-cpd.xml ${source}" />
  55. </exec>
  56. </target>
  57. <target name="phploc" description="Generate phploc.csv">
  58. <exec executable="phploc">
  59. <arg line="--log-csv ${basedir}/build/logs/phploc.csv ${source}" />
  60. </exec>
  61. </target>
  62. <target name="phpcs" description="Generate checkstyle.xml using PHP_CodeSniffer">
  63. <exec executable="phpcs" output="/dev/null">
  64. <arg line="--report=checkstyle
  65. --report-file=${basedir}/build/logs/checkstyle.xml
  66. --standard=phpcs.xml
  67. ${source}" />
  68. </exec>
  69. </target>
  70. <target name="phpcb" description="Aggregate tool output with PHP_CodeBrowser">
  71. <exec executable="phpcb">
  72. <arg line="--log ${basedir}/build/logs
  73. --source ${source}
  74. --output ${basedir}/build/code-browser" />
  75. </exec>
  76. </target>
  77. <target name="build" depends="clean,parallelTasks,phpunit,phpcb"/>
  78. </project>