Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Drop compatibility with PHP < 5.5.9 and Symfony < 2.7 and add support…
… for Symfony 4.0
- Loading branch information
Showing
7 changed files
with
67 additions
and
36 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 |
---|---|---|
@@ -1,31 +1,50 @@ | ||
language: php | ||
|
||
sudo: false | ||
|
||
dist: trusty | ||
|
||
cache: | ||
directories: | ||
- $HOME/.composer/cache | ||
php: | ||
- 5.5 | ||
- 5.6 | ||
- 7.0 | ||
- 7.1 | ||
- hhvm | ||
|
||
env: | ||
global: | ||
- deps=high | ||
- TARGET=test | ||
|
||
matrix: | ||
fast_finish: true | ||
include: | ||
- php: hhvm | ||
- php: 5.4 | ||
env: deps=low | ||
- php: 7.0 | ||
env: TARGET=cs_dry_run | ||
- php: 5.5 | ||
env: COMPOSER_FLAGS="--prefer-lowest" | ||
# test 2.7 LTS | ||
- php: 5.6 | ||
env: deps=high | ||
- php: 7.0 | ||
env: deps=low | ||
env: SYMFONY_VERSION=2.7.* | ||
# test 2.8 LTS | ||
- php: 5.6 | ||
env: SYMFONY_VERSION=2.8.* | ||
# test the latest stable 3.x release | ||
- php: 5.6 | ||
env: SYMFONY_VERSION=^3.0 | ||
# test the latest release (including beta releases) | ||
- php: 7.1 | ||
env: DEPENDENCIES=beta | ||
allow_failures: | ||
- php: hhvm | ||
|
||
sudo: false | ||
|
||
cache: | ||
directories: | ||
- $HOME/.composer/cache | ||
|
||
before_install: | ||
- if [ "$DEPENDENCIES" = "beta" ]; then perl -pi -e 's/^}$/,"minimum-stability":"beta"}/' composer.json; fi; | ||
- if [ "$SYMFONY_VERSION" != "" ]; then composer require "symfony/symfony:${SYMFONY_VERSION}" --no-update; fi; | ||
- if [ "$TRAVIS_PHP_VERSION" != "hhvm" ]; then echo "memory_limit=2G" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini; fi; | ||
|
||
install: | ||
- if [ "$deps" = "low" ]; then composer update --prefer-dist --prefer-lowest; fi; | ||
- if [ "$deps" != "low" ]; then composer update --prefer-dist; fi; | ||
install: composer update --prefer-dist --no-interaction $COMPOSER_FLAGS | ||
|
||
script: | ||
- make test | ||
- make $TARGET |
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,5 +1,8 @@ | ||
cs: | ||
./vendor/friendsofphp/php-cs-fixer/php-cs-fixer fix --verbose | ||
./vendor/bin/php-cs-fixer fix --verbose | ||
|
||
cs_dry_run: | ||
./vendor/bin/php-cs-fixer fix --verbose --dry-run | ||
|
||
test: | ||
./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
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