language: php

php:
  - 5.3
  - 5.4
  - 5.5
  - 5.6
  - nightly

env:
  - SYMFONY_VERSION=2.7.*

matrix:
  include:
    - php: 5.3.3
      env: SYMFONY_VERSION=2.3.* COMPOSER_FLAGS="--prefer-lowest"
    - php: 5.6
      env: SYMFONY_VERSION=2.3.*
    - php: 5.6
      env: SYMFONY_VERSION=2.6.*
    - php: 5.6
      env: SYMFONY_VERSION=2.8.*@dev
    - php: 5.6
      env: SYMFONY_VERSION=3.0.*@dev
  allow_failures:
    - env: SYMFONY_VERSION=2.8.*@dev
    - env: SYMFONY_VERSION=3.0.*@dev
    - php: nightly

before_install:
  - composer self-update

install:
  - composer require symfony/framework-bundle:${SYMFONY_VERSION} --prefer-source

script:
  - make test

language: php

php:
  - 5.3
  - 5.4
  - 5.5
  - 5.6
  - nightly

env:
  - SYMFONY_VERSION=2.7.* COMPOSER_FLAGS="--prefer-source"

matrix:
  include:
    - php: 5.3.3
      env: SYMFONY_VERSION=2.3.* COMPOSER_FLAGS="--prefer-source"
    - php: 5.6
      env: SYMFONY_VERSION=2.3.* COMPOSER_FLAGS="--prefer-source"
    - php: 5.6
      env: SYMFONY_VERSION=2.6.* COMPOSER_FLAGS="--prefer-source"
    - php: 5.6
      env: SYMFONY_VERSION=2.8.*@dev COMPOSER_FLAGS=""
    - php: 5.6
      env: SYMFONY_VERSION=3.0.*@dev COMPOSER_FLAGS=""
  allow_failures:
    - env: SYMFONY_VERSION=2.8.*@dev COMPOSER_FLAGS=""
    - env: SYMFONY_VERSION=3.0.*@dev COMPOSER_FLAGS=""
    - php: nightly

before_install:
  - composer self-update
  - if [ "$SYMFONY_VERSION" = "2.8.*@dev" ] || [ "$SYMFONY_VERSION" = "3.0.*@dev" ]; then perl -pi -e 's/^}$/,"minimum-stability":"dev"}/' composer.json; fi;

install:
  - composer require symfony/framework-bundle:${SYMFONY_VERSION} $COMPOSER_FLAGS

script:
  - make test

Allow dev dependencies on Symfony 2.8 & 3.0, adjust and implement COMPOSER_FLAGS fully
Allow dev dependencies on Symfony 2.8 & 3.0, adjust and implement COMPOSER_FLAGS fully
