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

matrix:
  allow_failures:
    - php: hhvm

before_script:
  - sh -c 'if [ "$TRAVIS_PHP_VERSION" != "hhvm" ]; then phpenv config-add .travis.php.ini; fi;'
  - if [[ "$TRAVIS_PHP_VERSION" == hhvm* ]]; then echo -e '\nhhvm.libxml.ext_entity_whitelist = "file"\n  - if [[ "$TRAVIS_PHP_VERSION" == hhvm* ]]; then echo -e '\nhhvm.libxml.ext_entity_whitelist = "file"\ndate.timezone = "UTC"' | sudo tee -a /etc/hhvm/php.ini; fi' | sudo tee -a /etc/hhvm/php.ini; fi
  - travis_retry pecl install SPL_Types
  - travis_retry composer self-update
  - travis_retry composer install --prefer-source --no-interaction --optimize-autoloader

script:
  - ./vendor/bin/phpunit --coverage-clover ./build/logs/clover.xml
#  - ./vendor/bin/phpcs --standard=PSR2 ./src/ ./tests/

matrix:
  fast_finish: true

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

matrix:
  allow_failures:
    - php: hhvm

before_script:
  - echo 'date.timezone = "UTC"' >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
  - travis_retry pecl install SPL_Types
  - travis_retry composer selfupdate
  - travis_retry composer install --prefer-source --no-interaction --optimize-autoloader

script:
  - ./vendor/bin/phpunit --coverage-clover ./build/logs/clover.xml
#  - ./vendor/bin/phpcs --standard=PSR2 ./src/ ./tests/
Revert "Try to repair HHVM builds"
Revert "Try to repair HHVM builds"

This reverts commit 5c368040f7178f36e4248162e7d55f9a5a1ccf20.
