Build system
From PRADO Wiki
Contents |
Build system
We use Phing as our project build system to automate tedious repetetive tasks like running tests, generate API documentation, build distribution packages etc.
Installation
Phing can be easily installed through the PEAR installer.
$ pear config-set preferred_state devel $ pear channel-discover pear.phing.info $ pear install --alldeps phing/phing-2.2.0RC1
For alternative installation methods please consult Phing 2 User Guide.
Ensure that you've got a recent version of PhpDocumentor and Xdebug since some of the tasks in Phing depends on those packages and they are not marked stable.
$ pear install --alldeps PhpDocumentor-1.3.0RC3 $ pecl install xdebug-2.0.0beta5
Build file
Build system configuration resides in the build.xml file at the root folder of your working copy. This is an XML-based file containing a range of targets that you can run. Documentation of the build file can be found in the Phing 2 User Guide
Targets
To see available targets you can simply type:
$ phing -l
dist
Build and package standard distributions and a PEAR package in the dist/ - directory.
$ phing dist
test
Run unit tests and generate code coverage reports in build/reports.
$ phing test
doc
Generate API documentation into build/docs/manual.
$ phing doc
lint
Check syntax of framework source files.
$ phing lint
pradolite
Generate the pradolite.php file which consists of some core framwork classes which is about three times faster to load than loading each and one of them.
$ phing pradolite

