language: php

sudo: false

php:
    - 5.6
    - 7.0
    - 7.1
    - hhvm

cache:
  directories:
    - $HOME/.composer/cache

matrix:
  fast_finish: true
  allow_failures:
    - env: PHPUNIT_VERSION='3.7.*@stable'
    - env: PHPUNIT_VERSION='4.*@stable'
    - env: PHPUNIT_VERSION='6.*@stable'
    - env: PHPUNIT_VERSION='*@dev'
  exclude:
    - php: 5.5
      env: PHPUNIT_VERSION='5.*@stable'

env:
    - PHPUNIT_VERSION='3.7.*@stable'
    - PHPUNIT_VERSION='4.*@stable'
    - PHPUNIT_VERSION='5.7.*@stable'
    - PHPUNIT_VERSION='6.*@stable'
    - PHPUNIT_VERSION='*@dev'

before_script:
    - composer self-update
    - composer require --no-update phpunit/phpunit=$PHPUNIT_VERSION
    - composer install --prefer-dist

script:
    - vendor/bin/phpunit --coverage-clover=coverage.clover

after_script:
  - wget https://scrutinizer-ci.com/ocular.phar
  - php ocular.phar code-coverage:upload --format=php-clover coverage.clover

language: php

sudo: false

dist: trusty

php:
    - 5.6
    - 7.0
    - 7.1
    - hhvm

cache:
  directories:
    - $HOME/.composer/cache

matrix:
  fast_finish: true
  allow_failures:
    - env: PHPUNIT_VERSION='3.7.*@stable'
    - env: PHPUNIT_VERSION='4.*@stable'
    - env: PHPUNIT_VERSION='6.*@stable'
    - env: PHPUNIT_VERSION='*@dev'
  exclude:
    - php: 5.5
      env: PHPUNIT_VERSION='5.*@stable'

env:
    - PHPUNIT_VERSION='3.7.*@stable'
    - PHPUNIT_VERSION='4.*@stable'
    - PHPUNIT_VERSION='5.7.*@stable'
    - PHPUNIT_VERSION='6.*@stable'
    - PHPUNIT_VERSION='*@dev'

before_script:
    - composer self-update
    - composer require --no-update phpunit/phpunit=$PHPUNIT_VERSION
    - composer install --prefer-dist

script:
    - vendor/bin/phpunit --coverage-clover=coverage.clover

after_script:
  - wget https://scrutinizer-ci.com/ocular.phar
  - php ocular.phar code-coverage:upload --format=php-clover coverage.clover

Test out ubuntu `trusty` beta, to continue hhvm support
Test out ubuntu `trusty` beta, to continue hhvm support

Seen in travis output:

> HHVM is no longer supported on Ubuntu Precise.
> Please consider using Trusty with `dist: trusty`.
