language: php

## Cache composer bits
cache:
  directories:
    - $HOME/.composer/cache/files

php:
  - 7.0
  - 7.1
  - 7.2
  - nightly

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

# also test lowest dependencies on PHP 7
matrix:
  include:
    - php: 7.0
      env:
        - DEPENDENCIES=lowest
  allow_failures:
    - php: nightly

sudo: false

install:
  - composer install --no-interaction
  - if [ "$DEPENDENCIES" = "lowest" ]; then composer update --prefer-lowest -n; fi

script:
  - ./vendor/bin/phpunit --coverage-text

language: php

## Cache composer bits
cache:
  directories:
    - $HOME/.composer/cache/files

php:
  - 7.0
  - 7.1
  - 7.2
  - nightly

# also test lowest dependencies on PHP 7
matrix:
  include:
    - php: 7.0
      env:
        - DEPENDENCIES=lowest
  allow_failures:
    - php: nightly

sudo: false

install:
  - composer install --no-interaction
  - if [ "$DEPENDENCIES" = "lowest" ]; then composer update --prefer-lowest -n; fi

script:
  - ./vendor/bin/phpunit --coverage-text

Remove trusty dist as it was needed for PHP 5.3 from the build config copied
Remove trusty dist as it was needed for PHP 5.3 from the build config copied
