Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test Symfony versions #13

Merged
merged 3 commits into from
Sep 29, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 11 additions & 11 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,38 +4,38 @@ cache:
directories:
- $HOME/.composer/cache/files
- $HOME/symfony-bridge/.phpunit
- SYMFONY_REQUIRE='>=3.4'

env:
global:
- PHPUNIT_FLAGS="-v"
- SYMFONY_PHPUNIT_DIR="$HOME/symfony-bridge/.phpunit"
# check Symfony versions here https://symfony.com/versions.json
- SYMFONY_LTS=4.4.*
- SYMFONY_LATEST=5.1.*
- SYMFONY_DEV=5.2.*

matrix:
fast_finish: true
include:
- php: 7.2.9
env: MAKER_TEST_VERSION=stable
env: SYMFONY_VERSION=${SYMFONY_LTS}
- php: 7.3
env: MAKER_TEST_VERSION=stable
# too unstable - sometimes we need other dev deps
# for things to pass, sometimes dev deps of other libraries
# are unstable and cause things to fail.
# - php: 7.3
# env: MAKER_TEST_VERSION=stable-dev
env: SYMFONY_VERSION=${SYMFONY_LATEST}
- php: 7.3
env: MAKER_TEST_VERSION=dev
env: SYMFONY_VERSION=${SYMFONY_DEV}
allow_failures:
- php: 7.3
env: MAKER_TEST_VERSION=dev
env: SYMFONY_VERSION=${SYMFONY_DEV}

before_install:
- find ~/.phpenv -name xdebug.ini -delete
- composer global require --no-progress --no-scripts --no-plugins symfony/flex dev-master
- composer config extra.symfony.require "${SYMFONY_VERSION}"
- composer config minimum-stability "dev"
- composer config prefer-stable true
- composer update

install:
- composer update ${COMPOSER_FLAGS} --prefer-dist --no-interaction
- ./vendor/bin/simple-phpunit install

script:
Expand Down
1 change: 1 addition & 0 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
<php>
<ini name="error_reporting" value="-1" />
<env name="KERNEL_CLASS" value="Mobizel\Bundle\MarkdownDocsBundle\Tests\app\AppKernel"/>
<env name="SYMFONY_DEPRECATIONS_HELPER" value="max[self]=0"/>
<server name="SHELL_VERBOSITY" value="-1" />
</php>

Expand Down
2 changes: 0 additions & 2 deletions tests/app/AppKernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@

class AppKernel extends Kernel
{
use MicroKernelTrait;

public function registerBundles()
{
return [
Expand Down