PHP Continuous Integration Environment note

Source: Internet
Author: User
Tags pear php continuous integration

Document the installation steps and procedures for several tools in the PHP integration environment:

Installing Pear

wget http://pear.php.net/go-pear.phar$ PHP Go-pear.phar

Use: Pear Install < pear package to install >


Installing PHPUnit

Pear channel-discover pear.phpunit.depear channel-discover components.ez.nopear channel-discover Pear.symfony-project.comsudo Pear Install Phpunit/phpunit

Installing PHPMD

PHP mess detector:http://phpmd.org/, used as a tool for analyzing results based on Pdepend:

<span style= "FONT-SIZE:14PX;" >pear channel-discover pear.phpmd.orgpear channel-discover pear.pdepend.orgpear Install--alldeps PHPMD/PHP_PMD </span>

Installing PHPCPD

(PHP copy paste detector:https://github.com/sebastianbergmann/phpcpd), used to discover duplicate code tools in your project:

<span style= "FONT-SIZE:14PX;" >pear channel-discover pear.phpunit.depear channel-discover components.ez.nopear Install Phpunit/phpcpd</span >

Installing PHPDCD

(PHP Dead Code detector:HTTPS://GITHUB.COM/SEBASTIANBERGMANN/PHPDCD), used to discover codes that are not referenced in the project:

Pear channel-discover pear.phpunit.depear channel-discover components.ez.nopear Install Phpunit/phpdcd-beta


Use: PHPDCD--exclude/data/wwwroot/payapi/system/lib//data/wwwroot/payapi

PHP Continuous Integration Environment note

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.