language: php

php:
    - 5.6
    - 5.5
    - 5.4
    - hhvm
    - 7

before_script:
    - sh -c 'if [ "$TRAVIS_PHP_VERSION" != "7" ]; then echo "extension = memcached.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini; fi;'
    - sh -c 'if [ "$TRAVIS_PHP_VERSION" = "7" ]; then pecl install memcached; fi;'
    - composer selfupdate
    - composer install --prefer-source

script: ./vendor/bin/phpunit

language: php

php:
    - 5.6
    - 5.5
    - 5.4
#    - hhvm
#    - 7

before_script:
    - echo "extension = memcached.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
    - composer selfupdate
    - composer install --prefer-source

script: ./vendor/bin/phpunit

Disable hhvm and 7 whilst memcached isnt working
Disable hhvm and 7 whilst memcached isnt working