language: php

php:
  - '5.6'
  - '7.0'
  - '7.1'
  - 'hhvm'

before_install:
  - if [[ $TRAVIS_PHP_VERSION =~ ^hhvm ]]; then echo 'xdebug.enable = On' >> /etc/hhvm/php.ini; fi

before_script:
  - travis_retry composer self-update
  - travis_retry composer install --no-interaction --prefer-source --dev

script:
  - vendor/bin/phpunit --bootstrap vendor/autoload.php --coverage-clover=coverage.xml --whitelist=src tests

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

dist: trusty

language: php

php:
  - '5.6'
  - '7.0'
  - '7.1'
  - '7.2'
  - '7.3'
  - 'hhvm'

before_install:
  - if [[ $TRAVIS_PHP_VERSION =~ ^hhvm ]]; then echo 'xdebug.enable = On' >> /etc/hhvm/php.ini; fi

before_script:
  - travis_retry composer self-update
  - travis_retry composer install --no-interaction --prefer-source --dev

script:
  - vendor/bin/phpunit --bootstrap vendor/autoload.php --coverage-clover=coverage.xml --whitelist=src tests

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

Update to trusty and set more PHP versions
Update to trusty and set more PHP versions