Skip to content

Commit

Permalink
Merge pull request #13 from loic425/feature/test-symfony-versions
Browse files Browse the repository at this point in the history
Test Symfony versions
  • Loading branch information
loic425 authored Sep 29, 2020
2 parents 06b317d + d558e70 commit 1b7cafe
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 13 deletions.
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

0 comments on commit 1b7cafe

Please sign in to comment.