-
-
Notifications
You must be signed in to change notification settings - Fork 21
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
Showing
9 changed files
with
196 additions
and
23 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,3 @@ | ||
service_name: travis-ci | ||
coverage_clover: coverage.xml | ||
json_path: coverage.json |
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,48 @@ | ||
before_commands: | ||
- "composer install --no-dev --prefer-source" | ||
|
||
checks: | ||
php: | ||
excluded_dependencies: | ||
- phpstan/phpstan | ||
|
||
tools: | ||
external_code_coverage: | ||
enabled: true | ||
timeout: 300 | ||
filter: | ||
excluded_paths: ["tests", "vendor"] | ||
php_code_sniffer: | ||
enabled: true | ||
config: | ||
standard: PSR2 | ||
filter: | ||
paths: ["src/*", "tests/*"] | ||
excluded_paths: [] | ||
php_cpd: | ||
enabled: true | ||
excluded_dirs: ["tests", "vendor"] | ||
php_cs_fixer: | ||
enabled: true | ||
config: | ||
level: all | ||
filter: | ||
paths: ["src/*", "tests/*"] | ||
php_loc: | ||
enabled: true | ||
excluded_dirs: ["tests", "vendor"] | ||
php_mess_detector: | ||
enabled: true | ||
config: | ||
ruleset: phpmd.xml.dist | ||
design_rules: { eval_expression: false } | ||
filter: | ||
paths: ["src/*"] | ||
php_pdepend: | ||
enabled: true | ||
excluded_dirs: ["tests", "vendor"] | ||
php_analyzer: | ||
enabled: true | ||
filter: | ||
paths: ["src/*", "tests/*"] | ||
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 |
---|---|---|
@@ -1,35 +1,50 @@ | ||
language: php | ||
php: | ||
- 5.5 | ||
- 5.6 | ||
- 7.0 | ||
- 7.1 | ||
- hhvm | ||
- 7.2 | ||
- nightly | ||
sudo: false | ||
|
||
env: | ||
|
||
matrix: | ||
fast_finish: true | ||
allow_failures: | ||
- php: | ||
- hhvm | ||
- nightly | ||
- php: nightly | ||
|
||
cache: | ||
directories: | ||
- $HOME/.composer/cache | ||
install: | ||
- composer install --no-interaction --prefer-dist --optimize-autoloader | ||
|
||
script: | ||
- vendor/bin/phpunit --coverage-clover=coverage.clover -v | ||
- composer update --no-interaction --prefer-source | ||
- vendor/bin/phpunit -v | ||
jobs: | ||
include: | ||
- stage: test | ||
script: | ||
- vendor/bin/phpunit --no-coverage | ||
|
||
before_script: | ||
- composer install --no-interaction | ||
- stage: coverage | ||
php: 7.1 | ||
script: | ||
- vendor/bin/phpunit | ||
after_script: | ||
- wget https://scrutinizer-ci.com/ocular.phar && php ocular.phar code-coverage:upload --format=php-clover build/logs/clover.xml | ||
- wget https://github.com/satooshi/php-coveralls/releases/download/v1.0.1/coveralls.phar && php coveralls.phar --verbose | ||
|
||
after_script: | ||
- if [ $TRAVIS_PHP_VERSION = '5.6' ]; then wget https://scrutinizer-ci.com/ocular.phar; php ocular.phar code-coverage:upload --format=php-clover coverage.clover; fi | ||
- stage: lint | ||
php: 7.1 | ||
before_script: | ||
- composer create-project symplify/easy-coding-standard temp/ecs | ||
script: | ||
- temp/ecs/bin/ecs check src tests | ||
- vendor/bin/phpstan analyse src --level max --configuration phpstan.neon | ||
|
||
cache: | ||
directories: | ||
- $HOME/.composer/cache/files | ||
|
||
notifications: | ||
irc: "irc.freenode.org#phpdocumentor" | ||
slack: | ||
secure: "fjumM0h+4w3EYM4dpgqvpiCug7m4sSIC5+HATgwga/Nrc6IjlbWvGOv3JPgD3kQUhi18VmZfUYPmCv916SIbMnv8JWcrSaJXnPCgmxidvYkuzQDIw1HDJbVppGnkmwQA/qjIrM3sIEMfnu/arLRJQLI363aStZzGPxwIa4PDKcg=" | ||
email: | ||
- [email protected] | ||
- [email protected] | ||
- [email protected] | ||
- [email protected] |
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,2 +1,11 @@ | ||
# ReflectionCommon | ||
[](https://travis-ci.org/phpDocumentor/ReflectionCommon) | ||
[](https://opensource.org/licenses/MIT) | ||
[](https://travis-ci.org/phpDocumentor/ReflectionCommon) | ||
[](https://ci.appveyor.com/project/phpDocumentor/reflectioncommon/branch/master) | ||
[](https://scrutinizer-ci.com/g/phpDocumentor/ReflectionCommon/?branch=master) | ||
[](https://scrutinizer-ci.com/g/phpDocumentor/ReflectionCommon/?branch=master) | ||
[](https://coveralls.io/github/phpDocumentor/ReflectionCommon?branch=master) | ||
[](https://github.com/phpstan/phpstan) | ||
|
||
|
||
ReflectionCommon | ||
================ |
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,54 @@ | ||
build: false | ||
clone_folder: c:\reflectioncommon | ||
max_jobs: 3 | ||
platform: x86 | ||
pull_requests: | ||
do_not_increment_build_number: true | ||
version: '{build}.{branch}' | ||
skip_tags: true | ||
branches: | ||
only: | ||
- master | ||
|
||
environment: | ||
matrix: | ||
- PHP_VERSION: '7.1.13' | ||
VC_VERSION: 'VC14' | ||
- PHP_VERSION: '7.2.1' | ||
VC_VERSION: 'VC15' | ||
matrix: | ||
fast_finish: false | ||
|
||
cache: | ||
- c:\php -> appveyor.yml | ||
- '%LOCALAPPDATA%\Composer\files' | ||
|
||
init: | ||
- SET PATH=c:\php\%PHP_VERSION%;%PATH% | ||
|
||
install: | ||
- IF NOT EXIST c:\php mkdir c:\php | ||
- IF NOT EXIST c:\php\%PHP_VERSION% mkdir c:\php\%PHP_VERSION% | ||
- cd c:\php\%PHP_VERSION% | ||
- IF NOT EXIST php-installed.txt appveyor DownloadFile http://windows.php.net/downloads/releases/php-%PHP_VERSION%-Win32-%VC_VERSION%-x86.zip | ||
- IF NOT EXIST php-installed.txt 7z x php-%PHP_VERSION%-Win32-%VC_VERSION%-x86.zip -y >nul | ||
- IF NOT EXIST php-installed.txt del /Q *.zip | ||
- IF NOT EXIST php-installed.txt copy /Y php.ini-development php.ini | ||
- IF NOT EXIST php-installed.txt echo max_execution_time=1200 >> php.ini | ||
- IF NOT EXIST php-installed.txt echo date.timezone="UTC" >> php.ini | ||
- IF NOT EXIST php-installed.txt echo extension_dir=ext >> php.ini | ||
- IF NOT EXIST php-installed.txt echo extension=php_curl.dll >> php.ini | ||
- IF NOT EXIST php-installed.txt echo extension=php_openssl.dll >> php.ini | ||
- IF NOT EXIST php-installed.txt echo extension=php_mbstring.dll >> php.ini | ||
- IF NOT EXIST php-installed.txt echo extension=php_fileinfo.dll >> php.ini | ||
- IF NOT EXIST php-installed.txt echo zend.assertions=1 >> php.ini | ||
- IF NOT EXIST php-installed.txt echo assert.exception=On >> php.ini | ||
- IF NOT EXIST php-installed.txt appveyor DownloadFile https://getcomposer.org/composer.phar | ||
- IF NOT EXIST php-installed.txt echo @php %%~dp0composer.phar %%* > composer.bat | ||
- IF NOT EXIST php-installed.txt type nul >> php-installed.txt | ||
- cd c:\reflectioncommon | ||
- composer install --no-interaction --prefer-dist --no-progress | ||
|
||
test_script: | ||
- cd c:\reflectioncommon | ||
- vendor/bin/phpunit |
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,21 @@ | ||
includes: | ||
- temp/ecs/config/clean-code.neon | ||
- temp/ecs/config/psr2.neon | ||
- temp/ecs/config/common.neon | ||
|
||
checkers: | ||
PhpCsFixer\Fixer\Operator\ConcatSpaceFixer: | ||
spacing: one | ||
|
||
parameters: | ||
exclude_checkers: | ||
# from temp/ecs/config/common.neon | ||
- PhpCsFixer\Fixer\ClassNotation\OrderedClassElementsFixer | ||
- PhpCsFixer\Fixer\PhpUnit\PhpUnitStrictFixer | ||
- PhpCsFixer\Fixer\ControlStructure\YodaStyleFixer | ||
# from temp/ecs/config/spaces.neon | ||
- PhpCsFixer\Fixer\Operator\NotOperatorWithSuccessorSpaceFixer | ||
|
||
skip: | ||
PHP_CodeSniffer\Standards\Generic\Sniffs\NamingConventions\CamelCapsFunctionNameSniff: | ||
- */tests/** |
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,23 @@ | ||
<?xml version="1.0" encoding="UTF-8" ?> | ||
<ruleset | ||
name="ProxyManager rules" | ||
xmlns="http://pmd.sf.net/ruleset/1.0.0" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://pmd.sf.net/ruleset/1.0.0 http://pmd.sf.net/ruleset_xml_schema.xsd" | ||
xsi:noNamespaceSchemaLocation="http://pmd.sf.net/ruleset_xml_schema.xsd" | ||
> | ||
<rule ref="rulesets/codesize.xml"/> | ||
<rule ref="rulesets/unusedcode.xml"/> | ||
<rule ref="rulesets/design.xml"> | ||
<!-- eval is needed to generate runtime classes --> | ||
<exclude name="EvalExpression"/> | ||
</rule> | ||
<rule ref="rulesets/naming.xml"> | ||
<exclude name="LongVariable"/> | ||
</rule> | ||
<rule ref="rulesets/naming.xml/LongVariable"> | ||
<properties> | ||
<property name="minimum">40</property> | ||
</properties> | ||
</rule> | ||
</ruleset> |
Empty file.
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