From 63b15740e7d3b31d0c46255d600812c30b5af7ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Dunglas?= Date: Fri, 24 Nov 2017 17:25:42 +0100 Subject: [PATCH] Symfony 4 compatiblity. Test with PHP 7+. --- .travis.yml | 25 ++++++++++++------------- composer.json | 10 +++++----- 2 files changed, 17 insertions(+), 18 deletions(-) diff --git a/.travis.yml b/.travis.yml index f125a61..20b1db0 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,32 +7,31 @@ 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: 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 diff --git a/composer.json b/composer.json index 2e721d1..2c0a524 100644 --- a/composer.json +++ b/composer.json @@ -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": {