language: php
dist: xenial
php:
    - 7.2
    - 7.3
    - 7.4

before_install:
    - mysql -e "create database IF NOT EXISTS admin_bundle_test;"
    - if [[ $TRAVIS_PHP_VERSION = hhvm* ]]; then export INI=/etc/hhvm/php.ini; else export INI=~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini; fi
    - echo memory_limit = -1 >> $INI

install:
    - composer install
    - wget https://cs.symfony.com/download/php-cs-fixer-v2.phar -O php-cs-fixer
    - composer create-project "symfony/skeleton:${SYMFONY_VERSION}" demo
    - cd demo
    - composer install
    - cd ..

script:
    - make phpunit.run
    - make phpstan.analyse
    - php php-cs-fixer fix --dry-run --using-cache=no --verbose
    - cd demo
    - bin/console ca:cl

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

env:
    - SYMFONY_VERSION=3.4.*
    - SYMFONY_VERSION=4.4.*
    - SYMFONY_VERSION=5.0.*
    - SYMFONY_VERSION=5.1.*

services:
    - mysql

language: php
dist: xenial
php:
    - 7.2
    - 7.3
    - 7.4

before_install:
    - mysql -e "create database IF NOT EXISTS admin_bundle_test;"
    - if [[ $TRAVIS_PHP_VERSION = hhvm* ]]; then export INI=/etc/hhvm/php.ini; else export INI=~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini; fi
    - echo memory_limit = -1 >> $INI

install:
    - composer install
    - wget https://cs.symfony.com/download/php-cs-fixer-v2.phar -O php-cs-fixer
    - composer create-project "symfony/skeleton:${SYMFONY_VERSION}" demo

script:
    - make phpunit.run
    - make phpstan.analyse
    - php php-cs-fixer fix --dry-run --using-cache=no --verbose
    - cd demo
    - rm -rf var/cache
    - bin/console ca:cl

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

env:
    - SYMFONY_VERSION=3.4.*
    - SYMFONY_VERSION=4.4.*
    - SYMFONY_VERSION=5.0.*
    - SYMFONY_VERSION=5.1.*

services:
    - mysql

Remove useless command in Travis CI
Remove useless command in Travis CI
