Skip to content

Commit

Permalink
travis: drop PHP 7.1
Browse files Browse the repository at this point in the history
  • Loading branch information
TomasVotruba committed Nov 23, 2019
1 parent 53eda0b commit 01455af
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 42 deletions.
20 changes: 7 additions & 13 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ os: linux
language: php

php:
- '7.1'
- '7.2'
- '7.3'
- '7.4snapshot'
Expand All @@ -22,20 +21,20 @@ jobs:
# Stage 1
-
stage: test
php: 7.1
php: 7.2
name: Lowest dependencies
install:
# install lowest dependencies
- composer update --prefer-lowest --no-progress

-
name: PHPStan
php: 7.1
php: 7.2
script:
- composer phpstan

-
php: 7.1
php: 7.2
name: ECS
script:
- composer check-cs
Expand All @@ -53,13 +52,13 @@ jobs:

-
name: Documentation
php: 7.1
php: 7.2
script:
- composer check-docs

-
name: Simple checks
php: 7.1
php: 7.2
script:
- php ci/check_services_in_yaml_configs.php
- php ci/run_all_sets.php
Expand Down Expand Up @@ -109,11 +108,11 @@ jobs:
# Windows
- &STANDARD_WINDOWS_JOB
stage: test
name: Windows PHP 7.1
name: Windows PHP 7.2
os: windows
dist: '1803-containers'
language: sh # No PHP currently
env: PHP_VERSION=7.1.32
env: PHP_VERSION=7.2.23
install:
- choco install php --version=${PHP_VERSION} --package-parameters="/InstallDir:c:\tools\php"
- choco install composer --ia "/DEV=C:\tools\php"
Expand All @@ -129,11 +128,6 @@ jobs:
# @todo this is probably broken, needs fixing
- php vendor/phpunit/phpunit/phpunit

-
<<: *STANDARD_WINDOWS_JOB
name: Windows PHP 7.2
env: PHP_VERSION=7.2.23

-
<<: *STANDARD_WINDOWS_JOB
name: Windows PHP 7.3
Expand Down
30 changes: 1 addition & 29 deletions ecs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,6 @@ imports:
- { resource: 'vendor/symplify/easy-coding-standard/config/set/clean-code.yaml' }

services:
Symplify\CodingStandard\Fixer\Php\ClassStringToClassConstantFixer:
allow_classes:
- 'SomeClass' # from PHPUnit
- 'PHPUnit\Framework\TestCase' # usually part of node construction, it can be missed
- 'Exception'
- 'ResourceBundle'
- 'SimpleXMLElement'
- 'SomeInterface'

Symplify\CodingStandard\Sniffs\CleanCode\CognitiveComplexitySniff:
max_cognitive_complexity: 9

Expand Down Expand Up @@ -52,6 +43,7 @@ parameters:
# rather useless
Symplify\CodingStandard\Sniffs\DependencyInjection\NoClassInstantiationSniff: ~
PhpCsFixer\Fixer\Import\GlobalNamespaceImportFixer: ~
Symplify\CodingStandard\Fixer\Php\ClassStringToClassConstantFixer: ~

PHP_CodeSniffer\Standards\PSR2\Sniffs\Methods\MethodDeclarationSniff.Underscore: ~
Symplify\CodingStandard\Sniffs\Architecture\DuplicatedClassShortNameSniff: ~
Expand All @@ -67,26 +59,6 @@ parameters:

Symplify\CodingStandard\Sniffs\CleanCode\ForbiddenReferenceSniff: ~

Symplify\CodingStandard\Fixer\Php\ClassStringToClassConstantFixer:
# classes might not exist
- 'packages/*Class.php'
- 'bin/bootstrap.php'
- '*/packages/*/src/Rector/*Rector.php'
- 'src/Rector/MethodCall/MethodCallToAnotherMethodCallWithArgumentsRector.php'
- 'src/Rector/Constant/RenameClassConstantsUseToStringsRector.php'
- '*/packages/NodeTypeResolver/**/PerNodeTypeResolver/**TypeResolver.php'
- '*/packages/NodeTypeResolver/**/PerNodeTypeResolver/**TypeResolver/*Test.php'
- '*RectorTest.php'
- 'src/Rector/AbstractPHPUnitRector.php'
- 'src/Rector/Class_/ParentClassToTraitsRector.php'
# required for exact string match with "\"
- 'packages/NodeTypeResolver/src/Php/AbstractTypeInfo.php'
# example in description
- 'src/Rector/Annotation/RenameAnnotationRector.php'
- 'packages/NetteToSymfony/src/Event/EventInfosFactory.php'
- 'packages/NetteTesterToPHPUnit/src/AssertManipulator.php'
- 'src/PhpParser/Node/Manipulator/CallManipulator.php'

Symplify\CodingStandard\Sniffs\CleanCode\ForbiddenStaticFunctionSniff:
- 'src/Util/*.php'
- 'packages/BetterPhpDocParser/src/Annotation/AnnotationNaming.php'
Expand Down

0 comments on commit 01455af

Please sign in to comment.