Download Summary

Transcript
Continuous Integration
Here is a hierarchical listing of the CruiseControl folder. Files and sub-folders not
relevant to our discussion have been removed:
The first thing to notice is that CruiseControl comes with its own distribution of Ant,
which is located in the apache-ant-1.7.0 directory. Ant is the default Java-based
build tool used by CruiseControl. Ant is a good tool for the job, but it's certainly
not the only one. Luckily, due to CruiseControl's modular nature it is pretty easy
to install and take advantage of additional build tools. In our case, we will create a
build script, using Ant and then port it to the more PHP-centric replacement Phing.
This may seem like a roundabout way of doing things, but there are several reasons.
First, the phpUnderControl documentation uses build script examples written for
Ant and not Phing. Second, CruiseControl itself uses Ant scripts to automate the
process and it is necessary to be familiar with its syntax. Lastly, there is a feature
relating to running unit tests that was not working properly in Phing, but we will
look at a workaround for that later.
[ 410 ]
Download from Wow! eBook
www.WoweBook.com