Chris@0: language: php Chris@0: sudo: false Chris@0: cache: Chris@0: directories: Chris@0: - $HOME/.composer/cache/files Chris@12: - $HOME/symfony-bridge/.phpunit Chris@0: Chris@17: env: Chris@17: global: Chris@17: - PHPUNIT_FLAGS="-v" Chris@17: - SYMFONY_PHPUNIT_DIR="$HOME/symfony-bridge/.phpunit" Chris@18: - DEPENDENCIES="nyholm/psr7:^1.1" Chris@17: Chris@0: matrix: Chris@17: fast_finish: true Chris@0: include: Chris@17: # Minimum supported dependencies with the latest and oldest PHP version Chris@18: - php: 7.3 Chris@17: env: COMPOSER_FLAGS="--prefer-stable --prefer-lowest" SYMFONY_DEPRECATIONS_HELPER="weak_vendors" Chris@0: - php: 5.3 Chris@12: dist: 'precise' Chris@17: env: COMPOSER_FLAGS="--prefer-stable --prefer-lowest" SYMFONY_DEPRECATIONS_HELPER="weak_vendors" DEPENDENCIES="" Chris@17: Chris@17: # Test the latest stable release Chris@0: - php: 5.3 Chris@12: dist: 'precise' Chris@18: env: DEPENDENCIES="symfony/phpunit-bridge:>=3.4,<3.4.22||>=4.0,<4.1.11||>=4.2,<4.2.3" Chris@17: - php: 5.4 Chris@17: env: DEPENDENCIES="zendframework/zend-diactoros:^1.4.1" Chris@17: - php: 5.5 Chris@17: env: DEPENDENCIES="zendframework/zend-diactoros:^1.4.1" Chris@0: - php: 5.6 Chris@17: env: DEPENDENCIES="zendframework/zend-diactoros:^1.4.1" Chris@0: - php: 7.0 Chris@18: env: DEPENDENCIES="zendframework/zend-diactoros:^1.4.1 http-interop/http-factory-diactoros:^1.0" Chris@17: - php: 7.1 Chris@17: - php: 7.2 Chris@18: - php: 7.3 Chris@17: env: COVERAGE=true PHPUNIT_FLAGS="-v --coverage-text" Chris@17: Chris@17: # Test LTS versions. This makes sure we do not use Symfony packages with version greater Chris@17: # than 2 or 3 respectively. Chris@18: - php: 7.3 Chris@17: env: DEPENDENCIES="$DEPENDENCIES symfony/lts:^2 symfony/force-lowest:~2.8.0" Chris@18: - php: 7.3 Chris@17: env: DEPENDENCIES="$DEPENDENCIES symfony/lts:^3 symfony/force-lowest:~3.4.0" Chris@17: Chris@17: # Latest commit to master Chris@18: - php: 7.3 Chris@17: env: STABILITY="dev" Chris@17: Chris@0: allow_failures: Chris@17: # Dev-master is allowed to fail. Chris@17: - env: STABILITY="dev" Chris@0: Chris@0: before_install: Chris@17: - if [[ $COVERAGE != true ]]; then phpenv config-rm xdebug.ini || true; fi Chris@17: - if ! [ -z "$STABILITY" ]; then composer config minimum-stability ${STABILITY}; fi; Chris@17: - if ! [ -v "$DEPENDENCIES" ]; then composer require --no-update ${DEPENDENCIES}; fi; Chris@0: Chris@0: install: Chris@17: # To be removed when this issue will be resolved: https://github.com/composer/composer/issues/5355 Chris@17: - if [[ "$COMPOSER_FLAGS" == *"--prefer-lowest"* ]]; then composer update --prefer-dist --no-interaction --prefer-stable --quiet; fi Chris@17: - composer update ${COMPOSER_FLAGS} --prefer-dist --no-interaction Chris@17: - ./vendor/bin/simple-phpunit install Chris@0: Chris@0: script: Chris@17: - composer validate --strict --no-check-lock Chris@17: # simple-phpunit is the PHPUnit wrapper provided by the PHPUnit Bridge component and Chris@17: # it helps with testing legacy code and deprecations (composer require symfony/phpunit-bridge) Chris@17: - ./vendor/bin/simple-phpunit $PHPUNIT_FLAGS