language: php

php:
  - 5.5
  - 5.6
  - 7.0
  - 7.1

before_script: composer install

script: phpunit --coverage-text

language: php

dist: trusty

matrix:
  include:
    - php: 7.2
    - php: 7.3
    - php: 7.4
      env: ANALYSIS='true'
    - php: nightly
  allow_failures:
    - php: nightly

before_script:
  - if [[ "$ANALYSIS" == 'true' ]]; then composer require php-coveralls/php-coveralls:^2.1.0 ; fi
  - composer install -n

script:
  - if [[ "$ANALYSIS" != 'true' ]]; then vendor/bin/phpunit ; fi
  - if [[ "$ANALYSIS" == 'true' ]]; then vendor/bin/phpunit --coverage-clover clover.xml ; fi
  - if [[ "$ANALYSIS" == 'true' ]]; then vendor/bin/phpcs ; fi
  - if [[ "$ANALYSIS" == 'true' ]]; then vendor/bin/phpstan analyse src ; fi

after_success:
  - if [[ "$ANALYSIS" == 'true' ]]; then vendor/bin/php-coveralls --coverage_clover=clover.xml -v ; fi

Update to make it slim 4 compatible
Update to make it slim 4 compatible
