language: php cache: directories: - $HOME/.composer/cache env: global: - COMPOSER_ARGS="--no-interaction" - XDEBUG_MODE=coverage matrix: fast_finish: true include: - php: 7.4 env: - DEPS=lowest - php: 7.4 env: - DEPS=latest - php: 8.0 env: - DEPS=lowest - php: 8.0 env: - DEPS=latest - CS_CHECK=true - TEST_COVERAGE=true - php: 8.1 env: - DEPS=lowest - php: 8.1 env: - DEPS=latest before_install: - if [[ $TEST_COVERAGE != 'true' ]]; then phpenv config-rm xdebug.ini || return 0 ; fi install: - travis_retry composer install $COMPOSER_ARGS --ignore-platform-reqs - if [[ $LEGACY_DEPS != '' ]]; then travis_retry composer update $COMPOSER_ARGS --with-dependencies $LEGACY_DEPS ; fi - if [[ $DEPS == 'latest' ]]; then travis_retry composer update $COMPOSER_ARGS; fi - if [[ $DEPS == 'lowest' ]]; then travis_retry composer update --prefer-lowest --prefer-stable $COMPOSER_ARGS; fi - stty cols 120 && composer show before_script: - mkdir -p ./build/logs script: - if [[ $TEST_COVERAGE == 'true' ]]; then composer test-coverage ; else composer test ; fi - composer cs-check after_success: - composer upload-coverage notifications: email: true