php持續集成環境筆記
阿新 • • 發佈:2017-06-11
sudo www col dsm pla one 項目 con 引用
使用:pear install <要安裝的pear程序包>
安裝phpdcd
記錄下php集成環境中若幹個工具的安裝步驟和過程:
安裝pear
wget http://pear.php.net/go-pear.phar $ php go-pear.phar
使用:pear install <要安裝的pear程序包>
安裝phpunit
pear channel-discover pear.phpunit.de pear channel-discover components.ez.no pear channel-discover pear.symfony-project.com sudo pear install phpunit/PHPUnit
安裝phpmd
PHP mess detector:http://phpmd.org/,用來做基於pdepend的結果分析用工具:
<span style="font-size:14px;">pear channel-discover pear.phpmd.org pear channel-discover pear.pdepend.org pear install --alldeps phpmd/PHP_PMD</span>
安裝phpcpd
(PHP copy paste detector:https://github.com/sebastianbergmann/phpcpd),用來發現項目中反復的代碼工具:
<span style="font-size:14px;">pear channel-discover pear.phpunit.de pear channel-discover components.ez.no pear install phpunit/phpcpd</span>
安裝phpdcd
(PHP dead code detector:https://github.com/sebastianbergmann/phpdcd)。用於發現項目中沒有引用使用的代碼:
pear channel-discover pear.phpunit.de pear channel-discover components.ez.no pear install phpunit/phpdcd-beta
使用:phpdcd --exclude /data/wwwroot/payapi/system/lib/ /data/wwwroot/payapi
php持續集成環境筆記