language: php

php:
  - 7.3
  - 7.4snapshot

env:
  matrix:
    - DEPENDENCIES="high"
    - DEPENDENCIES="low"

before_script:
  - if [ "$DEPENDENCIES" = "high" ]; then composer --prefer-source update; fi;
  - if [ "$DEPENDENCIES" = "low" ]; then composer --prefer-lowest --prefer-source update; fi;

script:
  - ./vendor/bin/phpunit
  - ulimit -n 4096 && phpdbg -qrr ./vendor/bin/infection --min-msi=98 --min-covered-msi=98
  - php -n ./vendor/bin/phpbench run --report=aggregate --revs=500 --iterations=50 --warmup=3
  # Only run the code standards with the latest package
  - ./vendor/bin/phpcs
  - ./vendor/bin/roave-backward-compatibility-check

language: php

php:
  - 7.3
  - 7.4snapshot

env:
  matrix:
    - DEPENDENCIES="high"
    - DEPENDENCIES="low"

before_script:
  - if [ "$DEPENDENCIES" = "high" ]; then composer --prefer-source update; fi;
  - if [ "$DEPENDENCIES" = "low" ]; then composer --prefer-lowest --prefer-source update; fi;

script:
  - ./vendor/bin/phpunit
  - ulimit -n 4096 && phpdbg -qrr ./vendor/bin/infection --min-msi=98 --min-covered-msi=98
  - php -n ./vendor/bin/phpbench run --report=aggregate --revs=500 --iterations=50 --warmup=3
  # Only run the code standards with the latest package
  - ./vendor/bin/phpcs
  - ./vendor/bin/roave-backward-compatibility-check

matrix:
  allow_failures:
    - php: 7.4snapshot

Allow failures on PHP 7.4 (for now)
Allow failures on PHP 7.4 (for now)

We'll add `--ignore-platform-requirements` to installation steps later on,
if we want to further explore PHP 7.4 implications.
