language: php
php:
  - 5.5
  - 5.6
  - 7.0
  - 7.1
  - 7.2

sudo: false

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

before_script:
  - composer install

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