language: php

sudo: false

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

php:
    - 5.5
    - 5.6
    - nightly
    - hhvm

matrix:
    allow_failures:
        - php: nightly
    fast_finish: true
    include:
        - php: 5.6
          env: DEPENDENCIES=dev

before_script:
    - composer self-update
    - if [ "$TRAVIS_PHP_VERSION" = "5.6" ] && [ "$DEPENDENCIES" != "dev" ]; then wget http://get.sensiolabs.org/php-cs-fixer.phar; fi;
    - if [ "$DEPENDENCIES" = "dev" ]; then perl -pi -e 's/^}$/,"minimum-stability":"dev"}/' composer.json; fi;

install:
    - composer install

script:
    - vendor/bin/behat
    - vendor/bin/phpunit
    - if [ "$TRAVIS_PHP_VERSION" = "5.6" ] && [ "$DEPENDENCIES" != "dev" ]; then php php-cs-fixer.phar fix --no-interaction --dry-run --diff -vvv; fi;

language: php

sudo: false

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

php:
    - 5.5
    - 7.0
    - nightly
    - hhvm

matrix:
    fast_finish: true
    include:
        - php: 5.6
          env: SYMFONY_VERSION=2.7.*
        - php: 5.6
          env: SYMFONY_VERSION=2.8.*@dev
        - php: 5.6
          env: SYMFONY_VERSION="3.0.*@dev"
        - php: 7.0

    allow_failures:
        - php: 7.0
        - php: nightly
        - env: SYMFONY_VERSION=2.8.*@dev
        - env: SYMFONY_VERSION="3.0.*@dev"

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

install:
    - composer update --no-interaction --prefer-dist

script:
    - vendor/bin/phpunit
    - vendor/bin/behat

Add various enhancements to the Travis script
Add various enhancements to the Travis script

* Add tests against supported LTS versions of Symfony
* Add a dedicated build for style checking
