-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Symfony 5 support
- Loading branch information
Showing
9 changed files
with
94 additions
and
43 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 |
---|---|---|
|
@@ -2,3 +2,4 @@ vendor/ | |
composer.lock | ||
bin/* | ||
!bin/.gitkeep | ||
.php_cs.cache |
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,28 @@ | ||
<?php | ||
|
||
$finder = PhpCsFixer\Finder::create() | ||
->in(__DIR__) | ||
->exclude('var') | ||
; | ||
|
||
return PhpCsFixer\Config::create() | ||
->setRiskyAllowed(true) | ||
->setRules([ | ||
'@Symfony' => true, | ||
'array_syntax' => [ | ||
'syntax' => 'short', | ||
], | ||
'binary_operator_spaces' => [ | ||
'align_double_arrow' => true, | ||
'align_equals' => true | ||
], | ||
'no_unreachable_default_argument_value' => false, | ||
'braces' => [ | ||
'allow_single_line_closure' => true, | ||
], | ||
'heredoc_to_nowdoc' => false, | ||
'phpdoc_summary' => false, | ||
'declare_strict_types' => true, | ||
]) | ||
->setFinder($finder) | ||
; |
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,25 +1,59 @@ | ||
dist: bionic | ||
|
||
language: php | ||
sudo: false | ||
|
||
cache: | ||
directories: | ||
- vendor | ||
- ~/.composer/cache/files | ||
|
||
env: | ||
global: | ||
- COMPOSER_MEMORY_LIMIT=-1 | ||
|
||
matrix: | ||
fast_finish: true | ||
include: | ||
- php: 7.0 | ||
- php: 7.1 | ||
- php: 7.2 | ||
# Minimum supported dependencies with the latest and oldest PHP version | ||
- php: 7.3 | ||
env: COMPOSER_FLAGS="--prefer-stable --prefer-lowest" SYMFONY_DEPRECATIONS_HELPER="max[self]=0" | ||
- php: 7.4 | ||
env: COMPOSER_FLAGS="--prefer-stable --prefer-lowest" SYMFONY_DEPRECATIONS_HELPER="max[self]=0" | ||
|
||
# Test the latest stable release | ||
- php: 7.3 | ||
- php: 7.4 | ||
|
||
# Test specific Symfony versions | ||
- php: 7.4 | ||
env: SYMFONY_VERSION="4.3.5" # LTS | ||
- php: 7.4 | ||
env: SYMFONY_VERSION="4.*" # Last 4.x version | ||
- php: 7.4 | ||
env: SYMFONY_VERSION="5.*" # Last 5.x version | ||
|
||
# Latest commit to master | ||
- php: 7.4 | ||
env: STABILITY="dev" | ||
|
||
allow_failures: | ||
# Dev-master is allowed to fail. | ||
- env: STABILITY="dev" | ||
- env: SYMFONY_VERSION="5.*" | ||
|
||
before_install: | ||
- echo "" > ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/xdebug.ini | ||
- phpenv config-rm xdebug.ini | ||
- if ! [ -z "$STABILITY" ]; then composer config minimum-stability ${STABILITY}; fi; | ||
- composer require --no-update symfony/flex ${DEPENDENCIES} | ||
- if ! [ -z "$SYMFONY_VERSION" ]; then composer config extra.symfony.require "${SYMFONY_VERSION}"; fi; | ||
|
||
before_script: | ||
- if [ -n "$GH_TOKEN" ]; then composer config github-oauth.github.com ${GH_TOKEN}; fi; | ||
- composer install --no-interaction --prefer-dist | ||
|
||
cache: | ||
directories: | ||
- bin | ||
- vendor | ||
- ~/.composer/cache/files | ||
install: | ||
- composer update ${COMPOSER_FLAGS} --prefer-dist --no-interaction | ||
|
||
script: | ||
- bin/coke | ||
- bin/php-cs-fixer fix --verbose --diff --dry-run src/ | ||
- bin/phpspec run -f dot -n |
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
13 changes: 7 additions & 6 deletions
13
spec/DependencyInjection/YproximiteEkomiApiExtensionSpec.php
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Yproximite\Bundle\EkomiApiBundle; | ||
|