language: php

matrix:
    fast_finish: true
    include:
        - php: 5.3
          env: 'COMPOSER_FLAGS="--prefer-stable --prefer-lowest"'
        - php: 5.4
        - php: 5.5
        - php: 5.6
        - php: 7.0
          env: SYMFONY_VERSION="~2.8"
        - php: 7.0
          env: SYMFONY_VERSION="~3.0"
        - php: hhvm

sudo: false

dist: trusty

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

before_install:
    - 'if [ "$SYMFONY_VERSION" != "" ]; then sed -i "s/\"symfony\/\([^\"]*\)\": \"[^\"]*\"/\"symfony\/\1\": \"$SYMFONY_VERSION\"/g" composer.json; fi'

install:
    - travis_retry composer update ${COMPOSER_FLAGS} --no-interaction

script:
    - composer test-ci
    - phpenv config-rm xdebug.ini || return 0
    - php php-cs-fixer --diff --dry-run -v fix

after_success:
    - php vendor/bin/coveralls -v

language: php

matrix:
    fast_finish: true
    include:
        - php: 5.3
          env: 'COMPOSER_FLAGS="--prefer-stable --prefer-lowest"'
        - php: 5.4
        - php: 5.5
        - php: 5.6
        - php: 7.0
          env: SYMFONY_VERSION="~2.8"
        - php: 7.0
          env: SYMFONY_VERSION="~3.0"
        - php: hhvm

sudo: false

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

before_install:
    - 'if [ "$SYMFONY_VERSION" != "" ]; then sed -i "s/\"symfony\/\([^\"]*\)\": \"[^\"]*\"/\"symfony\/\1\": \"$SYMFONY_VERSION\"/g" composer.json; fi'

install:
    - travis_retry composer update ${COMPOSER_FLAGS} --no-interaction

script:
    - composer test-ci
    - phpenv config-rm xdebug.ini || return 0
    - php php-cs-fixer --diff --dry-run -v fix

after_success:
    - php vendor/bin/coveralls -v

Revert "Travis - set dist to trusty"
Revert "Travis - set dist to trusty"

This reverts commit 5a9a2256175c3a28cd76f8a0b2c2f84a7e886a40.
