-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of github.com:bowlofsoup/NormalizerBundle
- Loading branch information
Showing
21 changed files
with
149 additions
and
70 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
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,36 +1,36 @@ | ||
language: php | ||
sudo: true | ||
os: linux | ||
|
||
cache: | ||
directories: | ||
- $HOME/.composer/cache | ||
|
||
matrix: | ||
include: | ||
- php: 7.2 | ||
env: SYMFONY_VERSION=4.4.* | ||
- php: 7.3 | ||
env: SYMFONY_VERSION=4.4.* | ||
- php: 7.4 | ||
env: SYMFONY_VERSION=4.4.* | ||
- php: 7.2 | ||
env: SYMFONY_VERSION=5.0.* | ||
- php: 7.3 | ||
env: SYMFONY_VERSION=5.0.* | ||
- php: 7.4 | ||
env: SYMFONY_VERSION=5.0.* | ||
fast_finish: true | ||
jobs: | ||
include: | ||
- php: 7.4 | ||
env: SYMFONY_VERSION=~4.4 | ||
- php: 7.4 | ||
env: SYMFONY_VERSION=~5.1 | ||
- dist: "jammy" | ||
php: 8.2 | ||
env: SYMFONY_VERSION=~5.1 | ||
fast_finish: true | ||
|
||
before_script: | ||
- if [ "$SYMFONY_VERSION" != "" ]; then composer require "symfony/symfony:${SYMFONY_VERSION}" --no-update; fi; | ||
- composer install | ||
before_install: | ||
- php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" | ||
- php composer-setup.php --version=1.10.22 | ||
- php -r "unlink('composer-setup.php');" | ||
- sudo mv composer.phar /usr/local/bin/composer | ||
|
||
install: | ||
- if [ "$SYMFONY_VERSION" != "" ]; then composer require "symfony/symfony:${SYMFONY_VERSION}" --no-update; fi; | ||
- COMPOSER_MEMORY_LIMIT=-1 travis_retry composer install | ||
- mkdir -p tests/coverage | ||
|
||
script: | ||
- mkdir -p tests/coverage | ||
- php vendor/bin/phpunit | ||
- vendor/bin/rector process --dry-run --no-progress-bar --ansi | ||
- vendor/bin/phpstan analyze --no-progress --ansi | ||
- php vendor/bin/phpunit | ||
|
||
after_script: | ||
- php vendor/bin/coveralls -v | ||
|
||
before_install: | ||
- echo "memory_limit=2048M" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini | ||
- php vendor/bin/coveralls -v |
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
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
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,11 @@ | ||
parameters: | ||
level: 1 | ||
paths: | ||
- 'src/' | ||
- 'tests/' | ||
|
||
tmpDir: var/cache/phpstan | ||
|
||
includes: | ||
- vendor/phpstan/phpstan-mockery/extension.neon | ||
- vendor/phpstan/phpstan-symfony/extension.neon |
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,30 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
use Rector\Config\RectorConfig; | ||
use Rector\Set\ValueObject\LevelSetList; | ||
use Rector\Symfony\Set\SymfonyLevelSetList; | ||
|
||
return static function (RectorConfig $rectorConfig): void | ||
{ | ||
$rectorConfig->paths([ | ||
__DIR__, | ||
]); | ||
|
||
$rectorConfig->skip([ | ||
__DIR__ . '/var', | ||
__DIR__ . '/vendor', | ||
]); | ||
|
||
$rectorConfig->sets([ | ||
LevelSetList::UP_TO_PHP_72, | ||
SymfonyLevelSetList::UP_TO_SYMFONY_51, | ||
]); | ||
|
||
$rectorConfig->importNames(true, false); | ||
$rectorConfig->importShortClasses(false); | ||
|
||
$rectorConfig->cacheDirectory(__DIR__ . '/var/cache/rector'); | ||
$rectorConfig->containerCacheDirectory(__DIR__ . '/var'); | ||
}; |
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
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
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
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
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
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
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
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
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
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
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
Oops, something went wrong.