Skip to content

add a test matrix to test all Symfony versions #285

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

Merged
merged 7 commits into from
Dec 5, 2019
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
14 changes: 12 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ cache:

before_install:
- phpenv config-rm xdebug.ini || echo "Can't disable xDebug"
- |
if [ "$SYMFONY_VERSION" != "" ]; then
sed -ri '/symfony\/monolog-bundle/! s/"symfony\/(.+)": "(.+)"/"symfony\/\1": "'$SYMFONY_VERSION'"/' composer.json;
fi;
- composer self-update
- composer global require hirak/prestissimo

Expand All @@ -27,7 +31,12 @@ jobs:
include:
- stage: Test
php: 7.1
name: prefer-lowest
env: SYMFONY_VERSION=3.4.*
- php: 7.3
env: SYMFONY_VERSION=4.4.*
- php: 7.4
env: SYMFONY_VERSION=5.0.*
- name: prefer-lowest
install:
- travis_retry travis_wait composer install --no-interaction --prefer-dist
- composer remove --dev friendsofphp/php-cs-fixer phpstan/phpstan phpstan/phpstan-phpunit jangregor/phpstan-prophecy --no-update
Expand All @@ -43,7 +52,8 @@ jobs:
script:
- phpdbg -qrr vendor/bin/phpunit --coverage-clover clover.xml
after_success:
- vendor/bin/ocular code-coverage:upload --format=php-clover clover.xml --revision=$TRAVIS_COMMIT
- wget https://scrutinizer-ci.com/ocular.phar
- php ocular.phar code-coverage:upload --format=php-clover clover.xml --revision=$TRAVIS_COMMIT
allow_failures:
- name: sentry/sentry dev-develop
stage: Test
Expand Down
1 change: 0 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@
"phpstan/phpstan-shim": "^0.11",
"phpstan/phpstan-phpunit": "^0.11",
"phpunit/phpunit": "^7.5",
"scrutinizer/ocular": "^1.4",
"symfony/browser-kit": "^3.4||^4.0",
"symfony/expression-language": "^3.4||^4.0",
"symfony/framework-bundle": "^3.4||^4.0",
Expand Down