language: php
sudo: false

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

git:
    depth: 1

php:
    - "7.2"
    - "7.4"

before_install:
    - composer self-update --stable
    - composer require php-coveralls/php-coveralls --no-suggest
    - composer global require ergebnis/composer-normalize bamarni/composer-bin-plugin --prefer-dist --no-interaction --no-progress --no-suggest

install:
    - composer install --prefer-dist --no-interaction --no-progress --no-suggest
    - composer bin all install --prefer-dist --no-interaction --no-progress --no-suggest
    - mkdir -p build/logs

script:
    - composer normalize --indent-size 4 --indent-style space --dry-run
    - ./vendor/bin/php-cs-fixer fix --diff --config vendor-bin/test/vendor/becklyn/php-cs/.php_cs.dist --dry-run --no-interaction
    - ./vendor/bin/phpstan analyse -l 4 --memory-limit 4G --ansi -c vendor-bin/test/vendor/becklyn/php-cs/phpstan/lib.neon . --no-interaction --no-progress
    - ./vendor/bin/simple-phpunit -c phpunit.xml --coverage-clover build/logs/clover.xml --testdox

after_script:
    - travis_retry php vendor/bin/php-coveralls

language: php
sudo: false

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

git:
    depth: 1

php:
    - "7.2"
    - "7.4"

before_install:
    - composer self-update --stable
    - composer require php-coveralls/php-coveralls --no-suggest
    - composer global require ergebnis/composer-normalize bamarni/composer-bin-plugin --prefer-dist --no-interaction --no-progress --no-suggest

install:
    - composer install --prefer-dist --no-interaction --no-progress --no-suggest
    - composer bin all install --prefer-dist --no-interaction --no-progress --no-suggest
    - mkdir -p build/logs

script:
    - composer normalize --indent-size 4 --indent-style space --dry-run
    - ./vendor/bin/php-cs-fixer fix --diff --config vendor-bin/test/vendor/becklyn/php-cs/.php_cs.dist --dry-run --no-interaction
    - ./vendor/bin/phpstan analyse --memory-limit 4G --ansi -c vendor-bin/test/vendor/becklyn/php-cs/phpstan/lib.neon src --no-interaction --no-progress
    - ./vendor/bin/simple-phpunit -c phpunit.xml --coverage-clover build/logs/clover.xml --testdox

after_script:
    - travis_retry php vendor/bin/php-coveralls

Remove explicit phpstan level + only test src
Remove explicit phpstan level + only test src
