Skip to content

Commit

Permalink
run tests against multiple Symfony versions
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthias Molitor committed Jul 18, 2016
1 parent 902ef76 commit a4fcbcc
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .travis.yml
Expand Up @@ -12,9 +12,19 @@ php:
- '7.0'
- 'hhvm'

env:
- SYMFONY_VERSION=locked # Use the versions that are given in composer.lock.
- SYMFONY_VERSION="2.8.*"
- SYMFONY_VERSION="3.0.*"
- SYMFONY_VERSION="3.1.*"

before_script:
- composer self-update --no-interaction
- composer install --no-interaction --prefer-source
- sh -c "if [ '$SYMFONY_VERSION' = 'locked' ]; then composer install --no-interaction --prefer-source; fi"
# Register a specific dependency versions if necessary...
- sh -c "if [ '$SYMFONY_VERSION' != 'locked' ]; then composer require --no-update symfony/symfony:${SYMFONY_VERSION}; fi"
# ... and update the dependencies accordingly, without restrictions regarding the PHP version.
- sh -c "if [ '$SYMFONY_VERSION' != 'locked' ]; then composer config --unset platform.php; composer update --no-interaction --prefer-source; fi"
- mkdir -p build/logs

script:
Expand Down

0 comments on commit a4fcbcc

Please sign in to comment.