language: php

php:
  - 7.1
  - 7.2
  - 7.3
  - 7.4snapshot

sudo: false

matrix:
  fast_finish: true
  include:
    - php: 7.1
      env: COMPOSER_FLAGS="--prefer-lowest"
    - php: 7.3
      env: SYMFONY_VERSION=^3.4
    - php: 7.3
      env: SYMFONY_VERSION=^4.0
  allow_failures:
    - php: 7.4snapshot

cache:
  directories:
    - $HOME/.composer/cache

before_install:
  - if [ "$SYMFONY_VERSION" != "" ]; then composer require "symfony/symfony:${SYMFONY_VERSION}" --no-update; fi;

install:
  - composer update --prefer-dist --no-interaction $COMPOSER_FLAGS

script:
  - mkdir -p build/logs
  - ./bin/phpunit --coverage-clover build/logs/clover.xml
  - ./bin/phpcs --standard=php_cs.xml --ignore=*/vendor/* .

after_script:
 - wget https://scrutinizer-ci.com/ocular.phar
 - php ocular.phar code-coverage:upload --format=php-clover build/logs/clover.xml

language: php

php:
  - 7.1
  - 7.2
  - 7.3
  - 7.4

sudo: false

matrix:
  fast_finish: true
  include:
    - php: 7.1
      env: COMPOSER_FLAGS="--prefer-lowest"
    - php: 7.4
      env: SYMFONY_VERSION=^3.4
    - php: 7.4
      env: SYMFONY_VERSION=^4.0
    - php: 7.4
      env: SYMFONY_VERSION=^5.0

cache:
  directories:
    - $HOME/.composer/cache

before_install:
  - if [ "$SYMFONY_VERSION" != "" ]; then composer require "symfony/symfony:${SYMFONY_VERSION}" --no-update; fi;

install:
  - composer update --prefer-dist --no-interaction $COMPOSER_FLAGS

script:
  - mkdir -p build/logs
  - ./bin/phpunit --coverage-clover build/logs/clover.xml
  - ./bin/phpcs --standard=php_cs.xml --ignore=*/vendor/* .

after_script:
 - wget https://scrutinizer-ci.com/ocular.phar
 - php ocular.phar code-coverage:upload --format=php-clover build/logs/clover.xml

Build on PHP7.4 and build with Symfony5
Build on PHP7.4 and build with Symfony5
