Unverified Commit 8575c255 authored by Marco Pivetta's avatar Marco Pivetta Committed by GitHub

Merge pull request #2965 from Majkl578/ci/cs-stable

Update Doctrine CS requirement
parents 20bdb9f8 c54138ad
...@@ -31,6 +31,7 @@ script: ./vendor/bin/phpunit --configuration tests/travis/$DB.travis.xml ...@@ -31,6 +31,7 @@ script: ./vendor/bin/phpunit --configuration tests/travis/$DB.travis.xml
jobs: jobs:
allow_failures: allow_failures:
- php: nightly - php: nightly
- stage: Coding standard
include: include:
- stage: Test - stage: Test
...@@ -304,7 +305,7 @@ jobs: ...@@ -304,7 +305,7 @@ jobs:
- stage: Pull request coding standard - stage: Pull request coding standard
if: type = pull_request if: type = pull_request
php: 7.2 php: 7.1
script: script:
- | - |
if [ $TRAVIS_BRANCH != "master" ]; then if [ $TRAVIS_BRANCH != "master" ]; then
...@@ -317,6 +318,6 @@ jobs: ...@@ -317,6 +318,6 @@ jobs:
- stage: Coding standard - stage: Coding standard
if: NOT type = pull_request if: NOT type = pull_request
php: nightly php: 7.1
script: script:
- ./vendor/bin/phpcs - ./vendor/bin/phpcs
...@@ -12,12 +12,20 @@ ...@@ -12,12 +12,20 @@
<file>lib</file> <file>lib</file>
<file>tests</file> <file>tests</file>
<rule ref="Doctrine"/> <rule ref="Doctrine">
<exclude name="SlevomatCodingStandard.TypeHints.DeclareStrictTypes"/>
<exclude name="SlevomatCodingStandard.TypeHints.TypeHintDeclaration.MissingParameterTypeHint"/>
<exclude name="SlevomatCodingStandard.TypeHints.TypeHintDeclaration.MissingReturnTypeHint"/>
</rule>
<rule ref="PSR1.Classes.ClassDeclaration.MultipleClasses"> <rule ref="PSR1.Classes.ClassDeclaration.MultipleClasses">
<exclude-pattern>*/tests/*</exclude-pattern> <exclude-pattern>*/tests/*</exclude-pattern>
</rule> </rule>
<rule ref="Squiz.Classes.ClassFileName.NoMatch">
<exclude-pattern>*/tests/*</exclude-pattern>
</rule>
<rule ref="Generic.NamingConventions.UpperCaseConstantName.ClassConstantNotUpperCase"> <rule ref="Generic.NamingConventions.UpperCaseConstantName.ClassConstantNotUpperCase">
<exclude-pattern>lib/Doctrine/DBAL/Events.php</exclude-pattern> <exclude-pattern>lib/Doctrine/DBAL/Events.php</exclude-pattern>
</rule> </rule>
......
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