language: php

sudo: false

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

matrix:
    fast_finish: true
    include:
        - php: 7.0
        - php: 7.0
          env: SYMFONY_VERSION=3.0.*
        - php: hhvm

    allow_failures:
        - env: SYMFONY_VERSION=3.0.*
        - php: hhvm

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

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

script:
    - phpunit
    - vendor/bin/behat

language: php

sudo: false

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

matrix:
    fast_finish: true
    include:
        - php: '7.0'
        - php: '7.0'
          env: SYMFONY_VERSION=3.0.*
        - php: hhvm

    allow_failures:
        - env: SYMFONY_VERSION=3.0.*
        - php: hhvm

before_install:
    - if [ "$TRAVIS_PHP_VERSION" != "hhvm" ]; then phpenv config-rm xdebug.ini; fi;
    - composer self-update
    - if [ "$GITHUB_OAUTH_TOKEN" ]; then composer config --global github-oauth.github.com ${GITHUB_OAUTH_TOKEN}; fi;
    - phpunit --self-update
    - if [ "$SYMFONY_VERSION" != "" ]; then composer require "symfony/symfony:${SYMFONY_VERSION}" --no-update; fi;

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

script:
    - phpunit
    - vendor/bin/behat

Speed up Travis CI build
Speed up Travis CI build

- Disable xdebug - see https://getcomposer.org/xdebug
- Use Github OAuth token if available
- Quote version strings in .travis.yml
