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