feature #134 Add support for PHP 8 (dunglas)
This PR was merged into the 2.2-dev branch. Discussion ---------- Commits -------f6121b8367Add support for PHP 88e736edf2cremove Symfony 5.0 from the matrix because it isn't maintained anymore7bd72b4cfamake Travis happy494affd2d9Try to fix the build9d7a615ebdcleanup
This commit is contained in:
12
.travis.yml
12
.travis.yml
@@ -1,13 +1,13 @@
|
|||||||
language: php
|
language: php
|
||||||
|
|
||||||
php:
|
php:
|
||||||
- '7.2'
|
- '7.2'
|
||||||
- '7.3'
|
- '7.3'
|
||||||
- '7.4'
|
- '7.4'
|
||||||
|
- '8.0snapshot'
|
||||||
|
|
||||||
env:
|
env:
|
||||||
- SYMFONY_VERSION=4.4.*
|
- SYMFONY_VERSION=4.4.*
|
||||||
- SYMFONY_VERSION=5.0.*
|
|
||||||
- SYMFONY_VERSION=5.1.*
|
- SYMFONY_VERSION=5.1.*
|
||||||
|
|
||||||
cache:
|
cache:
|
||||||
@@ -16,6 +16,7 @@ cache:
|
|||||||
|
|
||||||
before_install:
|
before_install:
|
||||||
- phpenv config-rm xdebug.ini || true
|
- phpenv config-rm xdebug.ini || true
|
||||||
|
- composer self-update --2 # Upgrade to Compose 2 (needed for PHP 8 support), only needed while it's not installed by default
|
||||||
|
|
||||||
install:
|
install:
|
||||||
- composer require symfony/dependency-injection:${SYMFONY_VERSION} --no-update --no-scripts --prefer-dist
|
- composer require symfony/dependency-injection:${SYMFONY_VERSION} --no-update --no-scripts --prefer-dist
|
||||||
@@ -27,7 +28,8 @@ install:
|
|||||||
- composer require --dev symfony/process:${SYMFONY_VERSION} --no-update --no-scripts --prefer-dist
|
- composer require --dev symfony/process:${SYMFONY_VERSION} --no-update --no-scripts --prefer-dist
|
||||||
- composer require --dev symfony/yaml:${SYMFONY_VERSION} --no-update --no-scripts --prefer-dist
|
- composer require --dev symfony/yaml:${SYMFONY_VERSION} --no-update --no-scripts --prefer-dist
|
||||||
|
|
||||||
- composer update --prefer-dist
|
# ignore-platform-req=php is necessary temporarily because PageObjectExtension isn't compatible with PHP8 yet: https://github.com/FriendsOfBehat/PageObjectExtension/pull/16
|
||||||
|
- if [[ ${TRAVIS_PHP_VERSION:0:3} == "8.0" ]]; then composer update --prefer-dist --ignore-platform-req=php; else composer update --prefer-dist; fi
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- composer check
|
- composer check
|
||||||
|
|||||||
@@ -11,7 +11,7 @@
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
"require": {
|
"require": {
|
||||||
"php": "^7.2",
|
"php": "^7.2|^8.0",
|
||||||
"behat/behat": "^3.6.1",
|
"behat/behat": "^3.6.1",
|
||||||
"symfony/dependency-injection": "^4.4|^5.0",
|
"symfony/dependency-injection": "^4.4|^5.0",
|
||||||
"symfony/http-kernel": "^4.4|^5.0",
|
"symfony/http-kernel": "^4.4|^5.0",
|
||||||
|
|||||||
Reference in New Issue
Block a user