Permalink
Browse files

Install phploc/phpmd using composer (on 5.3+)

  • Loading branch information...
1 parent 0ceefd7 commit 55c87fa3177a9fc6b450e4651a338978a60894f7 @mrook mrook committed Jul 12, 2014
Showing with 13 additions and 13 deletions.
  1. +10 −12 .travis.sh
  2. +3 −1 composer.json
View
@@ -18,18 +18,6 @@ installPearTask ()
pear -qq channel-discover pear.phing.info
echo "... OK"
- echo -e "\nInstalling / upgrading phpcpd ... "
- which phpcpd >/dev/null &&
- pear upgrade pear.phpunit.de/phpcpd ||
- pear install pear.phpunit.de/phpcpd
- phpenv rehash
-
- echo -e "\nInstalling / upgrading phploc ... "
- which phploc >/dev/null &&
- pear upgrade pear.phpunit.de/phploc ||
- pear install pear.phpunit.de/phploc
- phpenv rehash
-
echo -e "\nInstalling / upgrading phpdepend ... "
if [[ $TRAVIS_PHP_VERSION < 5.3 ]]; then
which pdepend >/dev/null &&
@@ -79,6 +67,16 @@ installPearTask ()
pear install -f phpunit/Text_Template-1.1.1
pear upgrade pecl.php.net/Phar ||
pear install pecl.php.net/Phar
+ echo -e "\nInstalling / upgrading phpcpd ... "
+ which phpcpd >/dev/null &&
+ pear upgrade pear.phpunit.de/phpcpd ||
+ pear install pear.phpunit.de/phpcpd
+ phpenv rehash
+
+ echo -e "\nInstalling / upgrading phploc ... "
+ which phploc >/dev/null &&
+ pear upgrade pear.phpunit.de/phploc ||
+ pear install pear.phpunit.de/phploc
phpenv rehash
mkdir vendor
touch vendor/autoload.php
View
@@ -23,7 +23,9 @@
},
"require-dev": {
"phpunit/phpunit": ">=3.7",
- "phpdocumentor/phpdocumentor": "2.x"
+ "phpdocumentor/phpdocumentor": "2.x",
+ "phploc/phploc": "2.x",
+ "phpmd/phpmd": "2.x"
},
"autoload": {
"classmap": ["classes/phing/"]

0 comments on commit 55c87fa

Please sign in to comment.