Add support for Symfony 4

This commit is contained in:
Kamil Kokot
2018-02-13 18:55:35 +01:00
parent beb15dfab7
commit bedee673a8

View File

@@ -2,26 +2,23 @@ language: php
php: php:
- 7.1 - 7.1
- 7.2
env: env:
- SYMFONY_VERSION=~3.3.0 - SYMFONY_VERSION=3.3.*
- SYMFONY_VERSION=~3.4.0 MINIMUM_STABILITY=beta - SYMFONY_VERSION=3.4.*
- SYMFONY_VERSION=~4.0.0 MINIMUM_STABILITY=beta - SYMFONY_VERSION=4.0.*
cache: cache:
directories: directories:
- vendor - ~/.composer/cache/files
before_install: before_install:
- phpenv config-rm xdebug.ini || true - phpenv config-rm xdebug.ini || true
- |
if [[ ! -z $MINIMUM_STABILITY ]]; then
composer config minimum-stability $MINIMUM_STABILITY
fi
- composer require --no-update symfony/http-kernel:$SYMFONY_VERSION symfony/framework-bundle:$SYMFONY_VERSION
install: install:
- composer require symfony/http-kernel:${SYMFONY_VERSION} --no-update --no-scripts --prefer-dist
- composer require --dev symfony/framework-bundle:${SYMFONY_VERSION} --no-update --no-scripts --prefer-dist
- composer update --prefer-dist - composer update --prefer-dist
script: script: