Commit 72e09691 by Scott

Travis CI: turn off Code Sniffer/Mess Detector

They are creating way too many errors that are not going to be fixed
right now.
Also added basic qa-config.php so that PHPUnit runs without error.
parent d1c35db3
......@@ -10,30 +10,33 @@ notifications:
on_failure: change
before_script:
## PHP_CodeSniffer
# PHP_CodeSniffer
- pear install pear/PHP_CodeSniffer
- phpenv rehash
## PHP Copy/Paste Detector
# PHP Copy/Paste Detector
- curl -o phpcpd.phar https://phar.phpunit.de/phpcpd.phar
## PHP Mess Detector
# PHP Mess Detector
- pear config-set preferred_state beta
- printf "\n" | pecl install imagick
- pear channel-discover pear.phpmd.org
- pear channel-discover pear.pdepend.org
- pear install --alldeps phpmd/PHP_PMD
- phpenv rehash
## PHPLOC
# PHPLOC
- curl -o phploc.phar https://phar.phpunit.de/phploc.phar
# Basic config required for PHPUnit
- cp qa-tests/phpunit-qa-config.php qa-config.php
script:
## PHP_CodeSniffer
- phpcs --report=emacs --extensions=php --standard=qa-tests/phpcs/ruleset.xml .
## PHP Copy/Paste Detector
# Most of this has been turned off until the code is actually close to passing
# PHP_CodeSniffer
#- phpcs --report=emacs --extensions=php --standard=qa-tests/phpcs/ruleset.xml .
# PHP Mess Detector
#- phpmd --exclude qa-include/vendor/ . text codesize
#- phpmd --exclude qa-include/vendor/ . text unusedcode
# PHP Copy/Paste Detector
- php phpcpd.phar .
## PHP Mess Detector
- phpmd --exclude qa-include/vendor/ . text codesize
- phpmd --exclude qa-include/vendor/ . text unusedcode
## PHPLOC
# PHPLOC
- php phploc.phar .
## PHPUNIT
# PHPUnit
- phpunit --bootstrap qa-tests/autoload.php qa-tests
......@@ -4,6 +4,9 @@
<exclude-pattern>qa-include/vendor/*</exclude-pattern>
<exclude-pattern>qa-config.php</exclude-pattern>
<exclude-pattern>qa-plugin/recaptcha-captcha/recaptchalib.php</exclude-pattern>
<exclude-pattern>qa-plugin/facebook-login/facebook.php</exclude-pattern>
<exclude-pattern>qa-plugin/facebook-login/base_facebook.php</exclude-pattern>
<rule ref="PSR1"/>
......
<?php
// Stand-in config file for PHPUnit
define('QA_MYSQL_HOSTNAME', '');
define('QA_MYSQL_USERNAME', '');
define('QA_MYSQL_PASSWORD', '');
define('QA_MYSQL_DATABASE', '');
define('QA_MYSQL_TABLE_PREFIX', 'qa_');
define('QA_EXTERNAL_USERS', false);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment