language: php

php:
  - 5.3
  - 5.4
  - 5.5
  - hhvm

cache:
  directories:
    - vendor

services:
  - memcached
  - mongodb
  - redis-server

before_script:
  - echo "extension=mongo.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
  - echo "extension=memcached.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
  - echo "extension=apc.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
  - wget https://getcomposer.org/composer.phar
  - php composer.phar install --dev --prefer-source
  # must be set after composer to avoid issue with autoloading
  - echo "apc.enable_cli=On" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini

script: phpunit

notifications:
    webhooks: https://sonata-project.org/bundles/cache/master/travis

matrix:
  allow_failures:
    - php: hhvm

language: php

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

cache:
  directories:
    - vendor

services:
  - memcached
  - mongodb
  - redis-server

before_script:
  - echo "extension=mongo.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
  - echo "extension=memcached.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
  - echo "extension=apc.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
  - wget https://getcomposer.org/composer.phar
  - php composer.phar install --dev --prefer-source
  # must be set after composer to avoid issue with autoloading
  - echo "apc.enable_cli=On" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini

script: phpunit

notifications:
    webhooks: https://sonata-project.org/bundles/cache/master/travis

matrix:
  allow_failures:
    - php: 7.0
    - php: hhvm

Add PHP 5.6 and 7.0 on Travis
Add PHP 5.6 and 7.0 on Travis