diff --git a/.travis.yml b/.travis.yml index 3a94202c..934be369 100644 --- a/.travis.yml +++ b/.travis.yml @@ -21,36 +21,39 @@ matrix: fast_finish: true include: # Minimum supported Symfony version and latest PHP version - - php: 7.1 - env: DEPENDENCIES="minimum" COVERAGE=true TEST_COMMAND="composer test-ci" SYMFONY_DEPRECATIONS_HELPER="weak" SYMFONY_PHPUNIT_VERSION="5.7" + - php: 7.2 + env: COMPOSER_FLAGS="--prefer-stable --prefer-lowest" SYMFONY_DEPRECATIONS_HELPER="weak" SYMFONY_PHPUNIT_VERSION="5.7" # Test the latest stable release + - php: 5.5 + env: SYMFONY_PHPUNIT_VERSION="5.7" - php: 5.6 env: SYMFONY_PHPUNIT_VERSION="5.7" - php: 7.0 - php: 7.1 - php: 7.2 + env: COVERAGE=true TEST_COMMAND="composer test-ci" # Test LTS versions - - php: 5.5 - env: DEPENDENCIES="symfony/lts:^2" - - php: 5.5 - env: DEPENDENCIES="symfony/lts:^3" + - php: 7.2 + env: DEPENDENCIES="dunglas/symfony-lock:^2" + - php: 7.2 + env: DEPENDENCIES="dunglas/symfony-lock:^3" + - php: 7.2 + env: DEPENDENCIES="dunglas/symfony-lock:^4" STABILITY="rc" # Latest commit to master - - php: 7.1 - env: DEPENDENCIES="dev" + - php: 7.2 + env: STABILITY="dev" allow_failures: - # dev-master is allowed to fail. - - php: 7.1 - env: DEPENDENCIES="dev" + # dev stability is allowed to fail. + - env: STABILITY="dev" before_install: - if [[ $COVERAGE != true ]]; then phpenv config-rm xdebug.ini || true; fi - - if [ "$DEPENDENCIES" = "minimum" ]; then COMPOSER_FLAGS="--prefer-stable --prefer-lowest"; fi; - - if [ "$DEPENDENCIES" = "dev" ]; then composer config minimum-stability dev; fi; - - if [[ $DEPENDENCIES == *"/"* ]]; then composer require --no-update $DEPENDENCIES; fi; + - if ! [ -z "$STABILITY" ]; then composer config minimum-stability ${STABILITY}; fi; + - if ! [ -v "$DEPENDENCIES" ]; then composer require --no-update ${DEPENDENCIES}; fi; install: # To be removed when this issue will be resolved: https://github.com/composer/composer/issues/5355 diff --git a/composer.json b/composer.json index 20b288f0..636ef6a2 100644 --- a/composer.json +++ b/composer.json @@ -37,7 +37,7 @@ }, "require-dev": { "guzzlehttp/psr7": "^1.0", - "matthiasnoback/symfony-dependency-injection-test": "^1.1 || ^2.0", + "matthiasnoback/symfony-dependency-injection-test": "^1.1 || ^2.3", "nyholm/nsa": "^1.1", "php-http/buzz-adapter": "^0.3", "php-http/curl-client": "^1.0",