5 - $HOME/.composer/cache/files
6 - $HOME/symfony-bridge/.phpunit
11 - SYMFONY_PHPUNIT_DIR="$HOME/symfony-bridge/.phpunit"
12 - DEPENDENCIES="zendframework/zend-diactoros:^1.4.1 http-interop/http-factory-diactoros:^1.0"
17 # Minimum supported dependencies with the latest and oldest PHP version
19 env: COMPOSER_FLAGS="--prefer-stable --prefer-lowest" SYMFONY_DEPRECATIONS_HELPER="weak_vendors"
22 env: COMPOSER_FLAGS="--prefer-stable --prefer-lowest" SYMFONY_DEPRECATIONS_HELPER="weak_vendors" DEPENDENCIES=""
24 # Test the latest stable release
29 env: DEPENDENCIES="zendframework/zend-diactoros:^1.4.1"
31 env: DEPENDENCIES="zendframework/zend-diactoros:^1.4.1"
33 env: DEPENDENCIES="zendframework/zend-diactoros:^1.4.1"
37 env: COVERAGE=true PHPUNIT_FLAGS="-v --coverage-text"
39 # Test LTS versions. This makes sure we do not use Symfony packages with version greater
40 # than 2 or 3 respectively.
42 env: DEPENDENCIES="$DEPENDENCIES symfony/lts:^2 symfony/force-lowest:~2.8.0"
44 env: DEPENDENCIES="$DEPENDENCIES symfony/lts:^3 symfony/force-lowest:~3.4.0"
46 # Latest commit to master
51 # Dev-master is allowed to fail.
52 - env: STABILITY="dev"
55 - if [[ $COVERAGE != true ]]; then phpenv config-rm xdebug.ini || true; fi
56 - if ! [ -z "$STABILITY" ]; then composer config minimum-stability ${STABILITY}; fi;
57 - if ! [ -v "$DEPENDENCIES" ]; then composer require --no-update ${DEPENDENCIES}; fi;
60 # To be removed when this issue will be resolved: https://github.com/composer/composer/issues/5355
61 - if [[ "$COMPOSER_FLAGS" == *"--prefer-lowest"* ]]; then composer update --prefer-dist --no-interaction --prefer-stable --quiet; fi
62 - composer update ${COMPOSER_FLAGS} --prefer-dist --no-interaction
63 - ./vendor/bin/simple-phpunit install
66 - composer validate --strict --no-check-lock
67 # simple-phpunit is the PHPUnit wrapper provided by the PHPUnit Bridge component and
68 # it helps with testing legacy code and deprecations (composer require symfony/phpunit-bridge)
69 - ./vendor/bin/simple-phpunit $PHPUNIT_FLAGS