Skip to content

Commit

Permalink
Update for CI
Browse files Browse the repository at this point in the history
  • Loading branch information
ogizanagi committed May 14, 2018
1 parent b04cc9e commit 1fb8719
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 4 deletions.
6 changes: 6 additions & 0 deletions .travis.yml
Expand Up @@ -48,6 +48,12 @@ jobs:
- composer config minimum-stability RC
- travis_retry composer update -n --prefer-dist

- php: 7.1
env: stability=beta SYMFONY_DEPRECATIONS_HELPER=weak SYMFONY_VERSION="~4.1-beta2"
install:
- composer config minimum-stability beta
- travis_retry composer update -n --prefer-dist

- php: 7.2
env: stability=alpha
install:
Expand Down
8 changes: 8 additions & 0 deletions Tests/DependencyInjection/Compiler/MessengerPassTest.php
Expand Up @@ -8,9 +8,17 @@
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Loader\XmlFileLoader;
use Symfony\Component\Messenger\MessageBus;
use Symfony\Component\Messenger\MessageBusInterface;

class MessengerPassTest extends TestCase
{
protected function setUp()
{
if (!interface_exists(MessageBusInterface::class)) {
$this->markTestSkipped('Symfony Messenger component is not installed');
}
}

public function testRemovesDefinitionsWhenMessengerComponentIsDisabled()
{
$pass = new MessengerPass();
Expand Down
5 changes: 5 additions & 0 deletions Tests/DependencyInjection/DoctrineExtensionTest.php
Expand Up @@ -18,6 +18,7 @@
use Symfony\Component\DependencyInjection\Definition;
use Symfony\Component\DependencyInjection\ParameterBag\ParameterBag;
use Symfony\Component\DependencyInjection\Reference;
use Symfony\Component\Messenger\MessageBusInterface;

class DoctrineExtensionTest extends TestCase
{
Expand Down Expand Up @@ -678,6 +679,10 @@ public function testAnnotationsBundleMappingDetectionWithVendorNamespace()

public function testMessengerIntegration()
{
if (!interface_exists(MessageBusInterface::class)) {
$this->markTestSkipped('Symfony Messenger component is not installed');
}

$container = $this->getContainer();
$extension = new DoctrineExtension();

Expand Down
6 changes: 2 additions & 4 deletions composer.json
Expand Up @@ -42,8 +42,7 @@
"twig/twig": "~1.26|~2.0",
"satooshi/php-coveralls": "^1.0",
"phpunit/phpunit": "^4.8.36|^5.7|^6.4",
"symfony/web-profiler-bundle": "~2.7|~3.0|~4.0",
"symfony/messenger": "~4.1-beta2"
"symfony/web-profiler-bundle": "~2.7|~3.0|~4.0"
},
"conflict": {
"symfony/http-foundation": "<2.6"
Expand All @@ -62,6 +61,5 @@
"branch-alias": {
"dev-master": "1.9.x-dev"
}
},
"minimum-stability": "dev"
}
}

0 comments on commit 1fb8719

Please sign in to comment.