📜 ⬆️ ⬇️

phpUnderControl 0.5.0

phpUnderControl aims to simplify the integration of CruiseControl and PHP by making it as easy as possible. It combines the best tools in combination with simple installation. It also allows you to view reports from PHP , PHP_CodeSniffer and PHPDocumentor . ©

If your experience with PHP is less than a year or if you use var_dump () / printr () when debugging programs and consider that this is the only correct option - pass by, all the offended can safely go straight to the profile and take out the anger on karma. If you really want to know what it is and why it is needed, then I advise you to start by installing phpUnderControl for this article, preferably not on the Windows platform and a parallel study of the relevant article . I hope that in the near future, PHP will create better and more technologically advanced developments thanks to the popularization of modern software development methods.

After quite a long time, the author of phpUnderControl has released the next version 0.5.0. In addition to minor changes, fixes and improvements, this version contains one new important feature: PHP_CodeBrowser ( review in English ).

phpUnderControl 0.5.0


PHP_CodeBrowser is a separate application that collects various data about the project and presents it in a readable form with syntax highlighting. This application is presented by Mayflower GmbH , where it was developed and is currently supported in conjunction with the Open Source community.
')
To use PHP_CodeBrowser, you need to add an additional execute publisher to the CruiseControl config.xml file.

<? xml version ="1.0" encoding ="UTF-8" ? >
< cruisecontrol >
<!-- ... -->
< project name ="PHP_Depend" buildafterfailed ="false" >
<!-- ... -->
< publishers >
<!-- ... -->
< execute command ="phpcb
--log projects/${project.name}/build/logs
--source projects/${project.name}/source/PHP
--output projects/${project.name}/build/php-code-browser"
/>
< artifactspublisher
dir ="projects/${project.name}/build/php-code-browser"
dest ="artifacts/${project.name}"
subdirectory ="php-code-browser" />
<!-- ... -->
</ publishers >
</ project >
</ cruisecontrol >


* This source code was highlighted with Source Code Highlighter .

If you create a new phpUnderControl project using the project command, phpUnderControl will automatically search for PHP_CodeBrowser and make the necessary settings if necessary.

mapi@arwen ~ $ phpuc project \
--project-name PHP_Depend \
--source-dir PHP \
--test-case PHP_Depend_AllTests \
--test-dir tests \
--test-file PHP/Depend/AllTests.php \
--version-control svn \
--version-control-url svn.pdepend.org/branches/0.9.0 \
/opt/cruisecontrol/cruisecontrol-bin-2.8.2


* This source code was highlighted with Source Code Highlighter .

To get the latest version of phpUnderControl, you can use a PEAR-Channel server:
mapi@arwen ~ $ pear channel-discover pear.phpunit.de
mapi@arwen ~ $ pear install phpunit/phpUnderControl-beta


* This source code was highlighted with Source Code Highlighter .

You can also get it from the Subversion repository:
mapi@arwen ~ $ svn co svn://phpunit.de/phpunit/phpUnderControl/trunk

* This source code was highlighted with Source Code Highlighter .


PS
Making only work under Windows Vista was only 7/8 CruiseControl'a, something else is still fading (java / phpunit), but PHP_CodeBrowser still highlights the whole shitty code, which is good news.

Source: https://habr.com/ru/post/78068/


All Articles