Skip to content

Commit

Permalink
Merge pull request #44 from SimpleBus/cmodijk-patch-1
Browse files Browse the repository at this point in the history
Test for Symfony 4.1 and 4.2
  • Loading branch information
cmodijk committed Dec 12, 2018
2 parents 177a576 + 16e959b commit a65e067
Show file tree
Hide file tree
Showing 7 changed files with 25 additions and 4 deletions.
8 changes: 6 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,11 @@ matrix:
- php: 7.2
env: SYMFONY_VERSION=4.0.*
- php: 7.2
env: SYMFONY_VERSION=4.0.* REMOVE_PROXY_BRIDGE="yes" EXTRA_PHPUNIT_PARAMS="--group SymfonyBridgeProxyManagerDependency"
env: SYMFONY_VERSION=4.1.*
- php: 7.2
env: SYMFONY_VERSION=4.2.*
- php: 7.2
env: SYMFONY_VERSION=4.2.* REMOVE_PROXY_BRIDGE="yes" EXTRA_PHPUNIT_PARAMS="--group SymfonyBridgeProxyManagerDependency"

# Test Doctrine versions
- php: 7.2
Expand All @@ -50,7 +54,7 @@ env:
before_install:
- composer self-update
- if [ "$DOCTRINE_VERSION" != "" ]; then composer require --no-update doctrine/dbal:$DOCTRINE_VERSION doctrine/orm:$DOCTRINE_VERSION ; fi
- if [ "$SYMFONY_VERSION" != "" ]; then composer require --no-update symfony/config:$SYMFONY_VERSION symfony/console:$SYMFONY_VERSION symfony/dependency-injection:$SYMFONY_VERSION symfony/finder:$SYMFONY_VERSION symfony/framework-bundle:$SYMFONY_VERSION symfony/http-kernel:$SYMFONY_VERSION symfony/monolog-bridge:$SYMFONY_VERSION symfony/process:$SYMFONY_VERSION symfony/proxy-manager-bridge:$SYMFONY_VERSION symfony/yaml:$SYMFONY_VERSION ; fi
- if [ "$SYMFONY_VERSION" != "" ]; then composer require --no-update symfony/config:$SYMFONY_VERSION symfony/console:$SYMFONY_VERSION symfony/dependency-injection:$SYMFONY_VERSION symfony/finder:$SYMFONY_VERSION symfony/framework-bundle:$SYMFONY_VERSION symfony/http-kernel:$SYMFONY_VERSION symfony/monolog-bridge:$SYMFONY_VERSION symfony/process:$SYMFONY_VERSION symfony/proxy-manager-bridge:$SYMFONY_VERSION symfony/yaml:$SYMFONY_VERSION symfony/routing:$SYMFONY_VERSION ; fi

install:
- composer update --prefer-dist $COMPOSER_FLAGS
Expand Down
4 changes: 4 additions & 0 deletions Bundle/AsynchronousBundle/.travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ matrix:
env: SYMFONY_VERSION=3.4.*
- php: 7.2
env: SYMFONY_VERSION=4.0.*
- php: 7.2
env: SYMFONY_VERSION=4.1.*
- php: 7.2
env: SYMFONY_VERSION=4.2.*
allow_failures:
- env: COMPOSER_FLAGS="--prefer-lowest"

Expand Down
4 changes: 4 additions & 0 deletions Bundle/JMSSerializerBundleBridge/.travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ matrix:
env: SYMFONY_VERSION=3.4.*
- php: 7.2
env: SYMFONY_VERSION=4.0.*
- php: 7.2
env: SYMFONY_VERSION=4.1.*
- php: 7.2
env: SYMFONY_VERSION=4.2.*
allow_failures:
- env: COMPOSER_FLAGS="--prefer-lowest"

Expand Down
4 changes: 4 additions & 0 deletions Bundle/RabbitMQBundleBridge/.travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ matrix:
env: SYMFONY_VERSION=3.4.*
- php: 7.2
env: SYMFONY_VERSION=4.0.*
- php: 7.2
env: SYMFONY_VERSION=4.1.*
- php: 7.2
env: SYMFONY_VERSION=4.2.*
allow_failures:
- env: COMPOSER_FLAGS="--prefer-lowest"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@ protected function setUp()
{
$this->container = new ContainerBuilder();
$this->delegatingDefinition = new Definition('stdClass', array(array()));
$this->delegatingDefinition->setPublic(true);
$this->container->setDefinition('simple_bus.rabbit_mq_bundle_bridge.delegating_additional_properties_resolver', $this->delegatingDefinition);
$this->container->addCompilerPass(new AdditionalPropertiesResolverPass());
}

/**
* @test
* @group test
*/
public function it_configures_a_chain_of_buses_according_to_the_given_priorities()
{
Expand Down
6 changes: 5 additions & 1 deletion Bundle/SymfonyBridge/.travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,11 @@ matrix:
- php: 7.2
env: SYMFONY_VERSION=4.0.*
- php: 7.2
env: SYMFONY_VERSION=4.0.* REMOVE_PROXY_BRIDGE="yes" EXTRA_PHPUNIT_PARAMS="--group SymfonyBridgeProxyManagerDependency"
env: SYMFONY_VERSION=4.1.*
- php: 7.2
env: SYMFONY_VERSION=4.2.*
- php: 7.2
env: SYMFONY_VERSION=4.2.* REMOVE_PROXY_BRIDGE="yes" EXTRA_PHPUNIT_PARAMS="--group SymfonyBridgeProxyManagerDependency"
allow_failures:
- env: COMPOSER_FLAGS="--prefer-lowest"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ protected function setUp()
{
$this->container = new ContainerBuilder();
$this->mainBusDefinition = new Definition('stdClass');
$this->mainBusDefinition->setPublic(true);
$this->container->setDefinition($this->mainBusId, $this->mainBusDefinition);
$this->container->addCompilerPass(new ConfigureMiddlewares($this->mainBusId, $this->middlewareTag));
}
Expand Down

0 comments on commit a65e067

Please sign in to comment.