language: php

php:
  - 7.2

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 --coverage-clover ./build/logs/clover.xml --exclude-group Functional
  - ./vendor/bin/phpunit --group=Functional
  - ./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

Test against PHP 7.3 and PHP 7.4-snapshot
Test against PHP 7.3 and PHP 7.4-snapshot
