language: php
php:
  - 5.4
  - 5.5
  - 5.6
  - 7
  - nightly
  - hhvm

matrix:
  fast_finish: true

sudo: false

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

script:
  - ./bin/phpunit --configuration tests/phpunit.xml.dist
  - ./bin/sabre-cs-fixer fix . --dry-run --diff

before_script:
  - phpenv config-rm xdebug.ini; true
  - composer install
