forked from nfephp-org/nfephp
-
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
110d6a2
commit f160d1d
Showing
4 changed files
with
166 additions
and
25 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 |
---|---|---|
@@ -1,30 +1,168 @@ | ||
filter: | ||
excluded_paths: [vendor/*, exemplos/*, tests/*, libs/External/*] | ||
paths: [libs/*] | ||
build: | ||
environment: | ||
php: '5.6.0' | ||
|
||
before_commands: | ||
- "composer install --prefer-source" | ||
|
||
tools: | ||
php_code_coverage: | ||
external_code_coverage: | ||
enabled: true | ||
test_command: phpunit --colors --verbose | ||
php_analyzer: false | ||
php_changetracking: true | ||
timeout: 300 | ||
filter: | ||
excluded_paths: | ||
- 'certs/*' | ||
- 'config/*' | ||
- 'examplos/*' | ||
- 'images/*' | ||
- 'install/*' | ||
- 'libs/extras/*' | ||
- 'schemes/*' | ||
- 'test/*' | ||
- 'vendor/*' | ||
|
||
php_code_coverage: | ||
enabled: false | ||
filter: | ||
excluded_paths: | ||
- 'certs/*' | ||
- 'config/*' | ||
- 'examplos/*' | ||
- 'images/*' | ||
- 'install/*' | ||
- 'libs/extras/*' | ||
- 'schemes/*' | ||
- 'test/*' | ||
- 'vendor/*' | ||
|
||
php_code_sniffer: | ||
enabled: true | ||
config: | ||
standard: PSR2 | ||
php_mess_detector: true | ||
php_pdepend: true | ||
php_sim: true | ||
standard: PSR2 | ||
sniffs: | ||
generic: | ||
files: | ||
one_class_per_file_sniff: false | ||
filter: | ||
excluded_paths: | ||
- 'certs/*' | ||
- 'config/*' | ||
- 'examplos/*' | ||
- 'images/*' | ||
- 'install/*' | ||
- 'libs/extras/*' | ||
- 'schemes/*' | ||
- 'test/*' | ||
- 'vendor/*' | ||
|
||
build: | ||
dependencies: | ||
before: | ||
- "sudo composer self-update" | ||
override: | ||
- "composer install --no-interaction --prefer-source" | ||
tests: | ||
override: | ||
- | ||
command: 'phpunit --coverage-clover=clover.xml' | ||
coverage: | ||
file: 'clover.xml' | ||
format: 'php-clover' | ||
# Copy/Paste Detector | ||
php_cpd: | ||
enabled: true | ||
excluded_dirs: | ||
- certs | ||
- config | ||
- examplos | ||
- images | ||
- install | ||
- libs/extras | ||
- schemes | ||
- test | ||
- vendor | ||
|
||
# PHP CS Fixer (http://http://cs.sensiolabs.org/). | ||
php_cs_fixer: | ||
enabled: true | ||
config: | ||
level: psr2 | ||
filter: | ||
excluded_paths: | ||
- 'certs/*' | ||
- 'config/*' | ||
- 'examplos/*' | ||
- 'images/*' | ||
- 'install/*' | ||
- 'libs/extras/*' | ||
- 'schemes/*' | ||
- 'test/*' | ||
- 'vendor/*' | ||
|
||
# Analyzes the size and structure of a PHP project. | ||
php_loc: | ||
enabled: true | ||
excluded_dirs: | ||
- certs | ||
- config | ||
- examplos | ||
- images | ||
- install | ||
- libs/extras | ||
- schemes | ||
- test | ||
- vendor | ||
|
||
# PHP Mess Detector (http://phpmd.org). | ||
php_mess_detector: | ||
enabled: true | ||
config: | ||
rulesets: | ||
- codesize | ||
- unusedcode | ||
- naming | ||
- design | ||
naming_rules: | ||
short_variable: { minimum: 2 } | ||
filter: | ||
excluded_paths: | ||
- 'certs/*' | ||
- 'config/*' | ||
- 'examplos/*' | ||
- 'images/*' | ||
- 'install/*' | ||
- 'libs/extras/*' | ||
- 'schemes/*' | ||
- 'test/*' | ||
- 'vendor/*' | ||
|
||
# Analyzes the size and structure of a PHP project. | ||
php_pdepend: | ||
enabled: true | ||
excluded_dirs: | ||
- certs | ||
- config | ||
- examplos | ||
- images | ||
- install | ||
- libs/extras | ||
- schemes | ||
- 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: | ||
- 'certs/*' | ||
- 'config/*' | ||
- 'examplos/*' | ||
- 'images/*' | ||
- 'install/*' | ||
- 'libs/extras/*' | ||
- 'schemes/*' | ||
- '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 |
---|---|---|
|
@@ -4,6 +4,7 @@ php: | |
- 5.3 | ||
- 5.4 | ||
- 5.5 | ||
- 5.6 | ||
|
||
before_script: | ||
- "composer self-update" | ||
|
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 |
---|---|---|
@@ -1 +1 @@ | ||
4.0-pre-alpha | ||
4.0-dev |
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