Skip to content

Commit

Permalink
Add support for Symfony 5
Browse files Browse the repository at this point in the history
  • Loading branch information
jeromegamez committed Nov 26, 2019
1 parent e2a3084 commit 69aaa4d
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 20 deletions.
21 changes: 7 additions & 14 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,26 +13,19 @@ env:
matrix:
fast_finish: true
include:
# Minimum supported dependencies with the latest and oldest PHP version
- php: 7.3
env: COMPOSER_FLAGS="--prefer-stable --prefer-lowest" SYMFONY_DEPRECATIONS_HELPER="weak_vendors"
- php: 7.0
env: COMPOSER_FLAGS="--prefer-stable --prefer-lowest" SYMFONY_DEPRECATIONS_HELPER="weak_vendors"

env: COMPOSER_FLAGS="--prefer-stable --prefer-lowest" SYMFONY_DEPRECATIONS_HELPER="max[self]=0"
- php: 7.0
env: DEPENDENCIES="symfony/lts:^2"
- php: 7.0
env: DEPENDENCIES="symfony/lts:^3"
# Test the latest stable release
- php: 7.0
- php: 7.1
- php: 7.2
env: SYMFONY_PHPUNIT_VERSION="7.4"
- php: 7.3
env: COVERAGE=true PHPUNIT_FLAGS="-v --coverage-text"

# Test LTS versions. This makes sure we do not use Symfony packages with version greater
# than 2 or 3 respectively. Read more at https://github.com/symfony/lts
- php: 7.3
env: DEPENDENCIES="symfony/lts:^2"
- php: 7.3
env: DEPENDENCIES="symfony/lts:^3"

env: COVERAGE=true PHPUNIT_FLAGS="-v --coverage-text" SYMFONY_PHPUNIT_VERSION="7.4"
# Latest commit to master
- php: 7.3
env: STABILITY="dev" SYMFONY_PHPUNIT_VERSION="7.4"
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# CHANGELOG

## Unreleased

* Added support for Symfony 5.x

## 1.6.1 - 2019-11-19

* Upgraded [symfony/dependency-injection](https://packagist.org/packages/symfony/dependency-injection) to avoid
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
.PHONY: tests coverage view-coverage cs docs view-docs tag

tests: ## Executes the test suite
@vendor/bin/simple-phpunit
@SYMFONY_PHPUNIT_VERSION="7.4" vendor/bin/simple-phpunit

coverage: ## Executes the test suite and generates code coverage reports
@vendor/bin/simple-phpunit --coverage-html=build/coverage
@SYMFONY_PHPUNIT_VERSION="7.4" vendor/bin/simple-phpunit --coverage-html=build/coverage

view-coverage: ## Shows the code coverage report
open build/coverage/index.html
Expand Down
8 changes: 4 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@
],
"require": {
"kreait/firebase-php": "^4.35",
"symfony/dependency-injection": "^2.8.50|^3.4.26|^4.1.12",
"symfony/config": "^2.8|^3.4|^4.0",
"symfony/http-kernel": "^2.8|^3.4|^4.0"
"symfony/dependency-injection": "^2.8.50|^3.4.26|^4.1.12|^5.0",
"symfony/config": "^2.8|^3.4|^4.0|^5.0",
"symfony/http-kernel": "^2.8|^3.4|^4.0|^5.0"
},
"require-dev": {
"symfony/phpunit-bridge": "^4.3.4"
"symfony/phpunit-bridge": "^5.0"
},
"autoload": {
"psr-4": {
Expand Down

0 comments on commit 69aaa4d

Please sign in to comment.