language: php
dist: bionic

php:
  - 7.4
  - 8.0

matrix:
  include:
    - php: 5.3
      dist: precise
    - php: 5.4
      dist: trusty
    - php: 5.5
      dist: trusty
    - php: 5.6
      dist: xenial
    - php: 7.0
      dist: xenial
    - php: 7.1
      dist: bionic
    - php: 7.2
      dist: bionic
    - php: 7.3
      dist: bionic

env:
  global:
    - SYMFONY_PHPUNIT_REMOVE_RETURN_TYPEHINT=1

install:
  - composer update
  - vendor/bin/simple-phpunit install

script:
  - vendor/bin/simple-phpunit --coverage-text
  - if [[ "$TRAVIS_PHP_VERSION" != "hhvm" ]]; then phpenv config-rm xdebug.ini; fi;
  - vendor/bin/simple-phpunit --group unicode

branches:
  only:
    - master
