-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a0731bf
commit e9dce19
Showing
260 changed files
with
16,184 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
docs/phpdoc/ | ||
test/message.txt | ||
test/testbootstrap.php | ||
.idea | ||
build/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,143 @@ | ||
before_commands: | ||
- "composer install --prefer-source" | ||
|
||
tools: | ||
# Code Coverage | ||
external_code_coverage: | ||
enabled: true | ||
timeout: 300 | ||
filter: | ||
excluded_paths: | ||
- 'docs/*' | ||
- 'examples/*' | ||
- 'extras/*' | ||
- 'test/*' | ||
- 'vendor/*' | ||
|
||
|
||
php_code_coverage: | ||
enabled: false | ||
test_command: phpunit | ||
filter: | ||
excluded_paths: | ||
- 'docs/*' | ||
- 'examples/*' | ||
- 'extras/*' | ||
- 'test/*' | ||
- 'vendor/*' | ||
|
||
|
||
# Code Sniffer | ||
php_code_sniffer: | ||
enabled: true | ||
command: phpcs | ||
config: | ||
standard: PSR2 | ||
sniffs: | ||
generic: | ||
files: | ||
one_class_per_file_sniff: false | ||
filter: | ||
excluded_paths: | ||
- 'docs/*' | ||
- 'examples/*' | ||
- 'extras/*' | ||
- 'test/*' | ||
- 'vendor/*' | ||
|
||
|
||
# Copy/Paste Detector | ||
php_cpd: | ||
enabled: true | ||
command: phpcpd | ||
excluded_dirs: | ||
- docs | ||
- examples | ||
- extras | ||
- test | ||
- vendor | ||
|
||
|
||
# PHP CS Fixer (http://http://cs.sensiolabs.org/). | ||
php_cs_fixer: | ||
enabled: true | ||
command: php-cs-fixer | ||
config: | ||
level: psr2 | ||
filter: | ||
excluded_paths: | ||
- 'docs/*' | ||
- 'examples/*' | ||
- 'extras/*' | ||
- 'test/*' | ||
- 'vendor/*' | ||
|
||
|
||
# Analyzes the size and structure of a PHP project. | ||
php_loc: | ||
enabled: true | ||
command: phploc | ||
excluded_dirs: | ||
- docs | ||
- examples | ||
- extras | ||
- test | ||
- vendor | ||
|
||
|
||
# PHP Mess Detector (http://phpmd.org). | ||
php_mess_detector: | ||
enabled: true | ||
command: phpmd | ||
config: | ||
rulesets: | ||
- codesize | ||
- unusedcode | ||
- naming | ||
- design | ||
naming_rules: | ||
short_variable: { minimum: 2 } | ||
filter: | ||
excluded_paths: | ||
- 'docs/*' | ||
- 'examples/*' | ||
- 'extras/*' | ||
- 'test/*' | ||
- 'vendor/*' | ||
|
||
# Analyzes the size and structure of a PHP project. | ||
php_pdepend: | ||
enabled: true | ||
command: pdepend | ||
excluded_dirs: | ||
- docs | ||
- examples | ||
- extras | ||
- test | ||
- vendor | ||
|
||
# Runs Scrutinizer's PHP Analyzer Tool | ||
# https://scrutinizer-ci.com/docs/tools/php/php-analyzer/config_reference | ||
php_analyzer: | ||
enabled: true | ||
config: | ||
checkstyle: | ||
enabled: true | ||
naming: | ||
enabled: true | ||
property_name: ^[_a-zA-Z][a-zA-Z0-9_]*$ #Allow underscores & caps | ||
method_name: ^(?:[_a-zA-Z]|__)[a-zA-Z0-9_]*$ #Allow underscores & caps | ||
parameter_name: ^[a-z][a-zA-Z0-9_]*$ # Allow underscores | ||
local_variable: ^[a-zA-Z][a-zA-Z0-9_]*$ #Allow underscores & caps | ||
exception_name: ^[a-zA-Z][a-zA-Z0-9]*Exception$ | ||
isser_method_name: ^(?:[_a-zA-Z]|__)[a-zA-Z0-9]*$ #Allow underscores & caps | ||
filter: | ||
excluded_paths: | ||
- 'docs/*' | ||
- 'examples/*' | ||
- 'extras/*' | ||
- 'test/*' | ||
- 'vendor/*' | ||
|
||
# Security Advisory Checker | ||
sensiolabs_security_checker: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
language: php | ||
php: | ||
- 5.6 | ||
- 5.5 | ||
- 5.4 | ||
- 5.3 | ||
- hhvm | ||
|
||
matrix: | ||
allow_failures: | ||
- php: hhvm | ||
|
||
before_install: | ||
- sudo apt-get update -qq | ||
- sudo apt-get install -y -qq postfix | ||
before_script: | ||
- sudo service postfix stop | ||
- smtp-sink -d "%d.%H.%M.%S" localhost:2500 1000 & | ||
- mkdir -p build/logs | ||
- cd test | ||
- cp testbootstrap-dist.php testbootstrap.php | ||
- chmod +x fakesendmail.sh | ||
- sudo mkdir -p /var/qmail/bin | ||
- sudo cp fakesendmail.sh /var/qmail/bin/sendmail | ||
- sudo cp fakesendmail.sh /usr/sbin/sendmail | ||
- echo 'sendmail_path = "/usr/sbin/sendmail -t -i "' | sudo tee "/home/travis/.phpenv/versions/`php -r 'echo PHP_VERSION;'`/etc/conf.d/sendmail.ini" | ||
- pwd | ||
- ls -al | ||
script: | ||
- phpunit --configuration ../travis.phpunit.xml.dist | ||
after_script: | ||
- wget https://scrutinizer-ci.com/ocular.phar | ||
- php ocular.phar code-coverage:upload --format=php-clover ../build/logs/clover.xml |
Oops, something went wrong.