language: php

php:
  - 7.1
  - 7.2
  - 7.3
  - 7.4
  - nightly

env:
  - PACKAGE_VERSION=high

sudo: false

matrix:
  include:
    - php: 7.1
      env: PACKAGE_VERSION=low
    - php: 7.4
      env:
        - PACKAGE_VERSION=high
        - MINIMUM_STABILITY=dev

before_script:
  - composer selfupdate
  - if [[ "$MINIMUM_STABILITY" ]]; then composer config minimum-stability $MINIMUM_STABILITY ; fi
  - if [[ "$PACKAGE_VERSION" == "high" ]]; then composer update --prefer-source; fi
  - if [[ "$PACKAGE_VERSION" == "low" ]]; then composer update --prefer-lowest --prefer-source; fi

script: php vendor/bin/phpunit

notifications:
  irc: "irc.freenode.org#jackalope"
