diff --git a/.travis.yml b/.travis.yml index f358a00cf..c01ccd3ac 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,33 +7,52 @@ matrix: include: - php: 7.1 sudo: false - env: SYMFONY_VERSION=3.4.* PHPSTAN=true + env: SYMFONY_VERSION=^3.4 PHPSTAN=true - php: 7.1 sudo: false - env: SYMFONY_VERSION=3.4.* PHP_CS_FIXER=true + env: SYMFONY_VERSION=^3.4 PHP_CS_FIXER=true - php: 7.1 sudo: false - env: SYMFONY_VERSION=3.4.* UNIT_TESTS=true + env: SYMFONY_VERSION=^3.4 UNIT_TESTS=true - php: 7.1 sudo: false - env: SYMFONY_VERSION=4.0.* UNIT_TESTS=true + env: SYMFONY_VERSION=^4.0 UNIT_TESTS=true - php: 7.2 sudo: false - env: SYMFONY_VERSION=4.0.* UNIT_TESTS=true + env: SYMFONY_VERSION=^4.0 UNIT_TESTS=true + - php: 7.3 + sudo: false + env: SYMFONY_VERSION=^4.0 UNIT_TESTS=true - php: 7.1 services: docker sudo: required - env: SYMFONY_VERSION=3.4.* FUNCTIONAL_TESTS=true PREPARE_CONTAINER=true + env: SYMFONY_VERSION=^3.4 FUNCTIONAL_TESTS=true PREPARE_CONTAINER=true - php: 7.1 sudo: required services: docker - env: SYMFONY_VERSION=4.0.* FUNCTIONAL_TESTS=true PREPARE_CONTAINER=true + env: SYMFONY_VERSION=^4.0 FUNCTIONAL_TESTS=true PREPARE_CONTAINER=true + - php: 7.2 + services: docker + sudo: required + env: SYMFONY_VERSION=^3.4 FUNCTIONAL_TESTS=true PREPARE_CONTAINER=true + - php: 7.2 + sudo: required + services: docker + env: SYMFONY_VERSION=^4.0 FUNCTIONAL_TESTS=true PREPARE_CONTAINER=true + - php: 7.3 + services: docker + sudo: required + env: SYMFONY_VERSION=^3.4 FUNCTIONAL_TESTS=true PREPARE_CONTAINER=true + - php: 7.3 + sudo: required + services: docker + env: SYMFONY_VERSION=^4.0 FUNCTIONAL_TESTS=true PREPARE_CONTAINER=true - php: 7.1 sudo: required services: docker - env: SYMFONY_VERSION=3.4.* RDKAFKA_TESTS=true PREPARE_CONTAINER=true + env: SYMFONY_VERSION=^3.4 RDKAFKA_TESTS=true PREPARE_CONTAINER=true allow_failures: - - env: SYMFONY_VERSION=3.4.* RDKAFKA_TESTS=true PREPARE_CONTAINER=true + - env: SYMFONY_VERSION=^3.4 RDKAFKA_TESTS=true PREPARE_CONTAINER=true cache: directories: diff --git a/composer.json b/composer.json index 639b274b6..37019a4d4 100644 --- a/composer.json +++ b/composer.json @@ -1,7 +1,6 @@ { "name": "enqueue/enqueue-dev", "type": "project", - "minimum-stability": "beta", "homepage": "https://enqueue.forma-pro.com/", "require": { "php": "^7.1.3", @@ -19,7 +18,7 @@ "ramsey/uuid": "^2|^3.5", "psr/log": "^1", "psr/container": "^1", - "symfony/event-dispatcher": "4.0.*", + "symfony/event-dispatcher": "^4.0", "makasim/temp-file": "^0.2", "google/cloud-pubsub": "^0.6.1|^1.0", "doctrine/orm": "~2.4", @@ -40,20 +39,20 @@ "phpunit/phpunit": "^5.5", "phpstan/phpstan": "^0.10", "queue-interop/queue-spec": "^0.6", - "symfony/browser-kit": "4.0.*", - "symfony/config": "4.0.*", - "symfony/process": "4.0.*", - "symfony/console": "4.0.*", - "symfony/dependency-injection": "4.0.*", - "symfony/event-dispatcher": "4.0.*", - "symfony/expression-language": "4.0.*", - "symfony/http-kernel": "4.0.*", - "symfony/filesystem": "4.0.*", - "symfony/framework-bundle": "4.0.*", + "symfony/browser-kit": "^4.0", + "symfony/config": "^4.0", + "symfony/process": "^4.0", + "symfony/console": "^4.0", + "symfony/dependency-injection": "^4.0", + "symfony/event-dispatcher": "^4.0", + "symfony/expression-language": "^4.0", + "symfony/http-kernel": "^4.0", + "symfony/filesystem": "^4.0", + "symfony/framework-bundle": "^4.0", "empi89/php-amqp-stubs": "*@dev", "doctrine/doctrine-bundle": "~1.2", "kwn/php-rdkafka-stubs": "^1.0.2", - "friendsofphp/php-cs-fixer": "^2" + "friendsofphp/php-cs-fixer": "^2.14" }, "autoload": { "psr-4": { diff --git a/pkg/enqueue/Tests/Symfony/Client/DependencyInjection/BuildProcessorRegistryPassTest.php b/pkg/enqueue/Tests/Symfony/Client/DependencyInjection/BuildProcessorRegistryPassTest.php index c0142f0e3..394c98026 100644 --- a/pkg/enqueue/Tests/Symfony/Client/DependencyInjection/BuildProcessorRegistryPassTest.php +++ b/pkg/enqueue/Tests/Symfony/Client/DependencyInjection/BuildProcessorRegistryPassTest.php @@ -139,7 +139,7 @@ private function assertLocatorServices(ContainerBuilder $container, $locatorId, $this->assertRegExp('/service_locator\..*?\.enqueue\./', $locatorId); $match = []; - if (false == preg_match('/(service_locator\..*?)\.enqueue\./', $locatorId, $match)) { + if (false == preg_match('/(\.?service_locator\..*?)\.enqueue\./', $locatorId, $match)) { $this->fail('preg_match should not failed'); } diff --git a/pkg/enqueue/Tests/Symfony/DependencyInjection/BuildProcessorRegistryPassTest.php b/pkg/enqueue/Tests/Symfony/DependencyInjection/BuildProcessorRegistryPassTest.php index d122e044c..9574b16ec 100644 --- a/pkg/enqueue/Tests/Symfony/DependencyInjection/BuildProcessorRegistryPassTest.php +++ b/pkg/enqueue/Tests/Symfony/DependencyInjection/BuildProcessorRegistryPassTest.php @@ -202,7 +202,7 @@ private function assertLocatorServices(ContainerBuilder $container, $locatorId, $this->assertRegExp('/service_locator\..*?\.enqueue\./', $locatorId); $match = []; - if (false == preg_match('/(service_locator\..*?)\.enqueue\./', $locatorId, $match)) { + if (false == preg_match('/(\.?service_locator\..*?)\.enqueue\./', $locatorId, $match)) { $this->fail('preg_match should not failed'); }