language: php php: # - 5.3 # requires old distro, see below - 5.4 - 5.5 - 5.6 - 7.0 - 7.1 - 7.2 - 7.3 # - hhvm # requires legacy phpunit & ignore errors, see below # lock distro so new future defaults will not break the build dist: trusty matrix: include: - php: 5.3 dist: precise - php: hhvm install: composer require phpunit/phpunit:^5 --dev --no-interaction allow_failures: - php: hhvm sudo: false addons: apt: packages: - libevent-dev # Used by 'event' and 'libevent' PHP extensions cache: directories: - $HOME/.composer/cache/files before_install: - sudo add-apt-repository ppa:ondrej/php -y - sudo apt-get update -q - sudo apt-get install libuv1-dev || true install: - ./travis-init.sh - composer install script: - ./vendor/bin/phpunit --coverage-text