language: php

php:
  - 5.6
  - 7.0
  - hhvm

sudo: required

before_install:
  - if [[ $TRAVIS_PHP_VERSION == "7.0" ]]; then printf "\n" | pecl install yaml-beta; fi
  - if [[ $TRAVIS_PHP_VERSION == "5.6" ]]; then printf "\n" | pecl install yaml; fi

install:
  - travis_retry composer install --no-interaction --prefer-source

script: vendor/bin/phpunit

language: php

php:
  - 5.6
  - 7.0
  - hhvm

sudo: required

before_install:
  - if [[ $TRAVIS_PHP_VERSION == "7.0" ]]; then printf "\n" | pecl install yaml-beta; fi
  - if [[ $TRAVIS_PHP_VERSION == "5.6" ]]; then printf "\n" | pecl install yaml; fi
  - if [[ $TRAVIS_PHP_VERSION == 'hhvm' ]]; then echo "hhvm.enable_zend_compat = true" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini

install:
  - travis_retry composer install --no-interaction --prefer-source

script: vendor/bin/phpunit

Add config to HHVM for zend compatability.
Add config to HHVM for zend compatability.
