language: php

php:
# - 5.3 # requires old distro, see below
  - 5.4
  - 5.5
  - 5.6
  - 7
  - hhvm # ignore errors, see below

# lock distro so new future defaults will not break the build
dist: trusty

# also test lowest dependencies on PHP 7
matrix:
  include:
    - php: 5.3
      dist: precise
    - php: 7.0
      env:
        - DEPENDENCIES=lowest
  allow_failures:
    - php: hhvm

sudo: false

install:
  - composer install --no-interaction
  - if [ "$DEPENDENCIES" = "lowest" ]; then composer update --prefer-lowest -n; fi
  
script:
  - ./vendor/bin/phpunit --coverage-text
  - if [ "$DEPENDENCIES" = "lowest" ]; then php -n tests/benchmark-middleware-runner.php; fi

language: php

php:
# - 5.3 # requires old distro, see below
  - 5.4
  - 5.5
  - 5.6
  - 7.0
  - 7.1
  - 7.2
  - hhvm # ignore errors, see below

# lock distro so new future defaults will not break the build
dist: trusty

# also test lowest dependencies on PHP 7
matrix:
  include:
    - php: 5.3
      dist: precise
    - php: 7.0
      env:
        - DEPENDENCIES=lowest
  allow_failures:
    - php: hhvm

sudo: false

install:
  - composer install --no-interaction
  - if [ "$DEPENDENCIES" = "lowest" ]; then composer update --prefer-lowest -n; fi
  
script:
  - ./vendor/bin/phpunit --coverage-text
  - if [ "$DEPENDENCIES" = "lowest" ]; then php -n tests/benchmark-middleware-runner.php; fi

Test against PHP 7.1 and 7.2
Test against PHP 7.1 and 7.2