Merge pull request #308 from dunglas/sf4
Symfony 4 compatiblity. Test with PHP 7+.
This commit is contained in:
27
.travis.yml
27
.travis.yml
@@ -7,32 +7,33 @@ cache:
|
|||||||
- $HOME/.composer/cache/files
|
- $HOME/.composer/cache/files
|
||||||
|
|
||||||
php:
|
php:
|
||||||
- 5.3
|
|
||||||
- 5.4
|
- 5.4
|
||||||
- 5.5
|
- 5.5
|
||||||
- 5.6
|
- 5.6
|
||||||
|
- 7.0
|
||||||
|
- 7.1
|
||||||
|
- 7.2
|
||||||
- hhvm
|
- hhvm
|
||||||
|
|
||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
- php: 5.5
|
- php: 5.3
|
||||||
env: SYMFONY_VERSION='2.3.*'
|
dist: precise
|
||||||
|
- php: 7.2
|
||||||
|
env: SYMFONY_VERSION='^2'
|
||||||
|
- php: 7.2
|
||||||
|
env: SYMFONY_VERSION='^3'
|
||||||
# Test against dev dependencies
|
# Test against dev dependencies
|
||||||
- php: 5.6
|
- php: 7.2
|
||||||
env: DEPS=dev
|
env: DEPS=dev
|
||||||
|
|
||||||
before_install:
|
before_install:
|
||||||
- composer self-update
|
- if [ "$SYMFONY_VERSION" != "" ]; then composer require --no-update symfony/lts=$SYMFONY_VERSION; fi;
|
||||||
- if [ "$SYMFONY_VERSION" != "" ]; then composer require --no-update symfony/symfony=$SYMFONY_VERSION; fi;
|
- if [ "$DEPS" = 'dev' ]; then composer config minimum-stability dev; fi;
|
||||||
- if [ "$DEPS" = 'dev' ]; then perl -pi -e 's/^}$/,"minimum-stability":"dev"}/' composer.json; fi;
|
|
||||||
|
|
||||||
install:
|
install:
|
||||||
- composer install --no-progress
|
- composer install --no-progress
|
||||||
|
|
||||||
before_script:
|
|
||||||
- export PATH=./vendor/bin:$PATH
|
|
||||||
- export PATH=./vendor/bin:$PATH
|
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- phpspec run -f pretty
|
- vendor/bin/phpspec run -f pretty
|
||||||
- behat -fprogress --strict
|
- vendor/bin/behat -fprogress --strict
|
||||||
|
|||||||
@@ -18,14 +18,14 @@
|
|||||||
|
|
||||||
"require": {
|
"require": {
|
||||||
"php": ">=5.3.2",
|
"php": ">=5.3.2",
|
||||||
"behat/behat": "~3.0,>=3.0.5",
|
"behat/behat": "^3.0.5",
|
||||||
"behat/mink": "~1.5",
|
"behat/mink": "^1.5",
|
||||||
"symfony/config": "~2.2|~3.0"
|
"symfony/config": "^2.7|^3.0|^4.0"
|
||||||
},
|
},
|
||||||
|
|
||||||
"require-dev": {
|
"require-dev": {
|
||||||
"phpspec/phpspec": "~2.0",
|
"behat/mink-goutte-driver": "^1.1",
|
||||||
"behat/mink-goutte-driver": "~1.1"
|
"phpspec/phpspec": "^2.0"
|
||||||
},
|
},
|
||||||
|
|
||||||
"autoload": {
|
"autoload": {
|
||||||
|
|||||||
Reference in New Issue
Block a user