Skip to content

Commit

Permalink
Test against different Symfony versions
Browse files Browse the repository at this point in the history
  • Loading branch information
wouterj authored and stof committed Dec 5, 2015
1 parent a5b3ba9 commit 5c893e5
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
15 changes: 11 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ language: php
sudo: false

cache:
directories:
- $HOME/.composer/cache
directories:
- $HOME/.composer/cache

php:
- 5.3
Expand All @@ -17,17 +17,24 @@ 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:
- deps=no

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:
Expand Down
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 5c893e5

Please sign in to comment.