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
|
||||
|
||||
php:
|
||||
- 5.3
|
||||
- 5.4
|
||||
- 5.5
|
||||
- 5.6
|
||||
- 7.0
|
||||
- 7.1
|
||||
- 7.2
|
||||
- hhvm
|
||||
|
||||
matrix:
|
||||
include:
|
||||
- php: 5.5
|
||||
env: SYMFONY_VERSION='2.3.*'
|
||||
- php: 5.3
|
||||
dist: precise
|
||||
- php: 7.2
|
||||
env: SYMFONY_VERSION='^2'
|
||||
- php: 7.2
|
||||
env: SYMFONY_VERSION='^3'
|
||||
# Test against dev dependencies
|
||||
- php: 5.6
|
||||
- php: 7.2
|
||||
env: DEPS=dev
|
||||
|
||||
before_install:
|
||||
- composer self-update
|
||||
- if [ "$SYMFONY_VERSION" != "" ]; then composer require --no-update symfony/symfony=$SYMFONY_VERSION; fi;
|
||||
- if [ "$DEPS" = 'dev' ]; then perl -pi -e 's/^}$/,"minimum-stability":"dev"}/' composer.json; fi;
|
||||
- if [ "$SYMFONY_VERSION" != "" ]; then composer require --no-update symfony/lts=$SYMFONY_VERSION; fi;
|
||||
- if [ "$DEPS" = 'dev' ]; then composer config minimum-stability dev; fi;
|
||||
|
||||
install:
|
||||
- composer install --no-progress
|
||||
|
||||
before_script:
|
||||
- export PATH=./vendor/bin:$PATH
|
||||
- export PATH=./vendor/bin:$PATH
|
||||
|
||||
script:
|
||||
- phpspec run -f pretty
|
||||
- behat -fprogress --strict
|
||||
- vendor/bin/phpspec run -f pretty
|
||||
- vendor/bin/behat -fprogress --strict
|
||||
|
||||
@@ -18,14 +18,14 @@
|
||||
|
||||
"require": {
|
||||
"php": ">=5.3.2",
|
||||
"behat/behat": "~3.0,>=3.0.5",
|
||||
"behat/mink": "~1.5",
|
||||
"symfony/config": "~2.2|~3.0"
|
||||
"behat/behat": "^3.0.5",
|
||||
"behat/mink": "^1.5",
|
||||
"symfony/config": "^2.7|^3.0|^4.0"
|
||||
},
|
||||
|
||||
"require-dev": {
|
||||
"phpspec/phpspec": "~2.0",
|
||||
"behat/mink-goutte-driver": "~1.1"
|
||||
"behat/mink-goutte-driver": "^1.1",
|
||||
"phpspec/phpspec": "^2.0"
|
||||
},
|
||||
|
||||
"autoload": {
|
||||
|
||||
Reference in New Issue
Block a user