language: php

sudo: false

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

matrix:
  include:
    - php: 7.1
      env: DEPENDENCIES='low'
    - php: 7.1
    - php: 7.2
      env: DEPENDENCIES='low'
    - php: 7.2
    - php: nightly
  allow_failures:
    - php: nightly
  fast_finish: true

install:
  - if [ "$DEPENDENCIES" != "low" ]; then composer update; fi;
  - if [ "$DEPENDENCIES" == "low" ]; then composer update --prefer-lowest; fi;

script:
   - ./vendor/bin/phpunit

language: php

sudo: false

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

matrix:
  include:
    - php: 7.1
      env: COMPOSER_FLAGS='--prefer-lowest'
    - php: 7.1
    - php: 7.2
    - php: nightly
      env: COMPOSER_FLAGS='--ignore-platform-reqs'
  allow_failures:
    - php: nightly
  fast_finish: true

install:
  - echo "Composer flags are '$COMPOSER_FLAGS'"
  - composer update $COMPOSER_FLAGS

script:
   - ./vendor/bin/phpunit

Make Composer work on PHP 7.3 build
Make Composer work on PHP 7.3 build
