Orchestrating the build process
To automate the build process, we are going to use Apache Ant. Ant looks for a build.xml
file in the root of the Symfony project, parses the contents, and based on what it finds, starts to run the PHP tools that we installed earlier.
So, in the root of your project, create the build.xml
file with the following content (you can grab this file from the project's GitHub repository, https://github.com/Soolan/mava-project):
<?xml version="1.0" encoding="UTF-8"?> <project name="Mava" default="build"> <property name="workspace" value="${basedir}" /> <property name="sourcedir" value="${basedir}/src" /> <property name="builddir" value="${workspace}/app/build" /> <target name="build" depends="prepare,vendors,parameters,lint,phploc,pdepend,phpcpd,phpmd-ci,phpcs-ci,phpdoc,phpunit,phpcb"/> ...
Get Mastering Symfony now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.