language: php

php:
  - 5.6
  - 7.0
  - hhvm

sudo: required

before_install:
  - printf "\n" | pecl install yaml-beta
  - echo "extension = yaml.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini

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; fi
  - if [[ $TRAVIS_PHP_VERSION >= 7.0 ]]; then printf "\n" | pecl install yaml-beta; fi

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

script: vendor/bin/phpunit

Install pecl yaml based on PHP version.
Install pecl yaml based on PHP version.

Still trial and error for HHVM.
