PHP Objects, Patterns and Practice (3rd edition)

(Barry) #1
CHAPTER 20 ■ CONTINUOUS INTEGRATION

Figure 20–3. PHP code browser


Build


While it’s possible to assess code in place, you should all also check that you can build and deploy a
package. To that end, I’ve included a package.xml file in my package. Here I test the build and install
stages.


$ pear package


Analyzing userthing/domain/User.php
Analyzing userthing/util/Validator.php
Analyzing userthing/persist/UserStore.php
Warning: in UserStore.php: class "UserStore" not prefixed with package name "userthing"
Warning: in Validator.php: class "Validator" not prefixed with package name "userthing"
Warning: in User.php: class "User" not prefixed with package name "userthing"
Warning: Channel validator warning: field "date" - Release Date "2010-03-07" is not today
Package userthing-1.2.1.tgz done
Tag the released code with `pear svntag package.xml'
(or set the SVN tag userthing-1.2.1 by hand)

Free download pdf