build.xml 1.0 KB

12345678910111213141516171819202122232425262728293031
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project name="php-code-coverage" default="setup">
  3. <target name="setup" depends="clean,install-dependencies"/>
  4. <target name="clean" description="Cleanup build artifacts">
  5. <delete dir="${basedir}/vendor"/>
  6. <delete file="${basedir}/composer.lock"/>
  7. </target>
  8. <target name="install-dependencies" depends="clean" description="Install dependencies with Composer">
  9. <exec executable="${basedir}/tools/composer" taskname="composer">
  10. <arg value="update"/>
  11. <arg value="--no-interaction"/>
  12. <arg value="--no-progress"/>
  13. <arg value="--no-ansi"/>
  14. <arg value="--no-suggest"/>
  15. </exec>
  16. </target>
  17. <target name="update-tools">
  18. <exec executable="phive">
  19. <arg value="--no-progress"/>
  20. <arg value="update"/>
  21. </exec>
  22. <exec executable="${basedir}/tools/composer">
  23. <arg value="self-update"/>
  24. </exec>
  25. </target>
  26. </project>