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

# cache vendor dirs
cache:
  directories:
    - vendor
    - $HOME/.composer/cache

install:
  - travis_retry composer self-update && composer --version
  - travis_retry composer install --prefer-dist --no-interaction

before_script:
  - sudo apt-get install p7zip-full

script:
  - composer validate --no-check-lock
  - vendor/bin/phpunit -v -c phpunit.xml
