language: php

dist: trusty

matrix:
  include:
  - php: 7.1
  - php: 7.2
  - php: 7.3
  - php: 7.4
    env: ANALYSIS='true'
  - php: 8.0
  - 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

language: php

dist: bionic

matrix:
  include:
  - php: 7.1
  - php: 7.2
  - php: 7.3
  - php: 7.4
    env: ANALYSIS='true'
  - php: 8.0
  - 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

Change build environment to bionic
Change build environment to bionic
