From 5c893e509a5e6e3788796c72d1b4642fa74a1846 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 | 15 +++++++++++---- composer.json | 1 + 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index 165c61dce..3f3eca463 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 @@ -17,7 +17,13 @@ php: matrix: include: - php: 5.3 - env: deps=low + env: deps=low SYMFONY_DEPRECATIONS_HELPER=weak + - php: 5.6 + env: SYMFONY_VERSION="2.3.*" + - php: 5.6 + env: SYMFONY_VERSION="2.8.*@dev" + - php: 5.6 + env: SYMFONY_VERSION="3.0.*@dev" env: global: @@ -25,9 +31,10 @@ env: 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"