This is phing configs for CakePHP 2.x project.
Phing build test CakePHP, check code quality (
phpcs,
phpcpd,
phpmd
) and generate phpdoc.
Before place configrations, install PHP packages to your machine.
pecl install xdebug
pear channel-discover components.ez.no
pear channel-discover pear.phpunit.de
pear channel-discover pear.phpmd.org
pear channel-discover pear.symfony-project.com
pear channel-discover pear.symfony.com
pear channel-discover pecl.php.net
pear channel-discover pear.pdepend.org
pear channel-discover pear.netpirates.net
pear install --alldeps PhpDocumentor
pear install --alldeps phpunit/phpcpd
pear install --alldeps phpmd/PHP_PMD
pear install --alldeps phpunit/PHPUnit
Place XML files to top directory of your CakePHP project.
We use the command test server by Jenkins.
phing build
Check your source, before you push. Results log are place to build/logs
phing build-local
Only testing, exclude coverage caluculate.
app/Console/cake test app AllTests
app/Console/cake test app Model/Foo
Licensed under The MIT License. Redistributions of files must retain the above copyright notice.
Copyright 2012 ULURU.CO.,LTD., https://github.com/uluru