language: php

cache:
  directories:
  - vendor

matrix:
  include:
    - php: 5.3
      env: PHP_VER=5
    - php: 5.4
      env: PHP_VER=5
    - php: 5.5
      env: PHP_VER=5
    - php: 5.6
      env: PHP_VER=5
    - php: 7.0
      env: PHP_VER=7
    - php: hhvm
      env: PHP_VER=hhvm
    - php: nightly
      env: PHP_VER=7
  allow_failures:
    - php: hhvm
    - php: nightly

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

before_script:
  - if [ $PHP_VER != "hhvm" ]; then echo "extension = redis.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini; fi

script:
  - if [ $PHP_VER == "hhvm" ]; then phpunit -c phpunit.hhvm.xml --coverage-clover=coverage.xml; fi
  - if [ $PHP_VER != "hhvm" ]; then phpunit --coverage-clover=coverage.xml; fi
  - sh -c "./vendor/bin/phpcs --standard=PSR2 ./src/"

after_success:
  - bash <(curl -s https://codecov.io/bash)

services:
  - redis-server

language: php

cache:
  directories:
  - vendor

matrix:
  include:
    - php: 5.3
      env: PHP_VER=5
    - php: 5.4
      env: PHP_VER=5
    - php: 5.5
      env: PHP_VER=5
    - php: 5.6
      env: PHP_VER=5
    - php: 7.0
      env: PHP_VER=7
    - php: hhvm
      env: PHP_VER=hhvm
    - php: nightly
      env: PHP_VER=7
  allow_failures:
    - php: nightly

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

before_script:
  - if [ $PHP_VER != "hhvm" ]; then echo "extension = redis.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini; fi

script:
  - if [ $PHP_VER == "hhvm" ]; then phpunit -c phpunit.hhvm.xml --coverage-clover=coverage.xml; fi
  - if [ $PHP_VER != "hhvm" ]; then phpunit --coverage-clover=coverage.xml; fi
  - sh -c "./vendor/bin/phpcs --standard=PSR2 ./src/"

after_success:
  - bash <(curl -s https://codecov.io/bash)

services:
  - redis-server

Remove hhvm from allowed_failures in Travis CI
Remove hhvm from allowed_failures in Travis CI
