language: php
dist: precise
sudo: false

php:
  - 5.3
  - 5.4
  - 5.5
  - 5.6
  - 7.0
  - 7.1
  - 7.2
  - 7.3

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
