language: php

sudo: true

env:
  global:
    - XDEBUG_MODE=coverage

services:
  - docker

jobs:
  include:
    - &TEST
      php: "7.3"
      before_script:
        - ./travisci/bin/start.sh
        - composer install
        - ./travisci/bin/logs.sh

      script: vendor/bin/phpunit --debug

      after_script:
        - ./travisci/bin/stop.sh
    - <<: *TEST
      php: "7.4"

    - stage: Static analysis with phpstan
      php: "7.4"
      script:
        - composer require --dev phpstan/phpstan
        - vendor/bin/phpstan analyse

language: php

sudo: true

env:
  global:
    - XDEBUG_MODE=coverage

services:
  - docker

jobs:
  include:
    - &TEST
      php: "7.3"
      before_script:
        - ./travisci/bin/start.sh
        - composer install
        - ./travisci/bin/logs.sh

      script: vendor/bin/phpunit --debug

      after_script:
        - ./travisci/bin/stop.sh
    - <<: *TEST
      php: "7.4"
    - <<: *TEST
      php: "8.0"

    - stage: Static analysis with phpstan
      php: "7.4"
      script:
        - composer require --dev phpstan/phpstan
        - vendor/bin/phpstan analyse

Add PHP 8.0 to the matrix
Add PHP 8.0 to the matrix
