From a3234ca666256a87ef7fc3d2fd6ed6331ffc99f8 Mon Sep 17 00:00:00 2001 From: Wouter J Date: Mon, 9 Nov 2015 17:17:14 +0100 Subject: [PATCH] Test against different Symfony versions --- .travis.yml | 14 +++++++++++--- composer.json | 1 + 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 165c61dce..d59ad906d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,8 +3,8 @@ language: php sudo: false cache: - directories: - - $HOME/.composer/cache + directories: + - $HOME/.composer/cache php: - 5.3 @@ -18,16 +18,24 @@ matrix: include: - php: 5.3 env: deps=low + - php: 5.6 + env: SYMFONY_VERSION="2.3.*" + - php: 5.6 + env: SYMFONY_VERSION="2.8.*@dev" SYMFONY_DEPRECATIONS_HELPER=strict + - php: 5.6 + env: SYMFONY_VERSION="3.0.*@dev" SYMFONY_DEPRECATIONS_HELPER=strict env: global: - deps=no + - SYMFONY_DEPRECATIONS_HELPER=weak before_install: - composer self-update + - if [ "$SYMFONY_VERSION" != "" ]; then composer require --no-update symfony/symfony:${SYMFONY_VERSION}; fi; install: - - if [ "$deps" = "no" ]; then composer install; fi; + - if [ "$deps" = "no" ]; then composer update; fi; - if [ "$deps" = "low" ]; then composer --prefer-lowest --prefer-stable update; fi; script: diff --git a/composer.json b/composer.json index 54c19638c..f41b6b3f6 100644 --- a/composer.json +++ b/composer.json @@ -36,6 +36,7 @@ "doctrine/orm": "~2.3", "symfony/yaml": "~2.2|~3.0", "symfony/validator": "~2.2|~3.0", + "symfony/phpunit-bridge": "~2.7|~3.0", "twig/twig": "~1.10", "satooshi/php-coveralls": "~0.6.1", "phpunit/phpunit": "~4"