sudo: false

language: php

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

php:
  - 5.3
  - 5.4
  - 5.5
  - 7.0
  - hhvm

matrix:
  fast_finish: true
  include:
    - php: 5.3
      env: deps="low"
    - php: 5.6
      env: SYMFONY_VERSION="2.3.x"
    - php: 5.6
      env: SYMFONY_VERSION="2.6.x"
    - php: 5.6
      env: SYMFONY_VERSION="2.7.x"
    - php: 5.6
      env: SYMFONY_VERSION="2.8.x-dev"
    - php: 5.6
      env: SYMFONY_VERSION="3.0.x-dev"
  allow_failures:
    - env: SYMFONY_VERSION="3.0.x-dev"

before_install:
    - if [ "$SYMFONY_VERSION" != "" ]; then composer require --dev --no-update symfony/symfony:"$SYMFONY_VERSION"; fi
    - composer self-update

install:
    - if [ "$deps" = "low" ]; then composer update --prefer-lowest --prefer-stable; else composer install; fi

script: phpunit --coverage-text
