Skip to content

Commit 01472ca

Browse files
authored
Symfony 5.0 (#6)
* Remove support for Symfony v2.3. * Add support for Symfony v4 & v5. * Add support for Sensio FrameworkExtraBundle v5. * Start using Symfony phpunit-bridge for testing.
1 parent 4ebfece commit 01472ca

10 files changed

+51
-2609
lines changed

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
/build/
22
/vendor/
3-
3+
/composer.phar
4+
/composer.lock
5+
/phpunit.xml

.travis.yml

Lines changed: 31 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,39 @@
1+
language: php
2+
13
sudo: false
24

3-
language: php
5+
cache:
6+
directories:
7+
- $HOME/.composer/cache/files
8+
- .phpunit
9+
410
php:
5-
- 5.5
611
- 5.6
712
- 7.0
13+
- 7.1
14+
- 7.2
15+
- 7.3
16+
17+
matrix:
18+
include:
19+
- php: 7.0
20+
env: deps=low
21+
fast_finish: true
22+
23+
env:
24+
global:
25+
- deps=no
26+
27+
before_install:
28+
- export SYMFONY_PHPUNIT_REMOVE_RETURN_TYPEHINT=1
29+
- export SYMFONY_PHPUNIT_DIR="$(pwd)/.phpunit"
30+
- INI_FILE=~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
31+
- echo memory_limit = -1 >> $INI_FILE
32+
- phpenv config-rm xdebug.ini
833

9-
before_script:
10-
- composer install --no-interaction -o
34+
install:
35+
- if [ "$deps" = "no" ]; then composer install; fi;
36+
- if [ "$deps" = "low" ]; then composer --prefer-lowest --prefer-stable update; fi;
1137

1238
script:
13-
- mkdir -p build/logs
14-
- vendor/bin/phpunit
39+
- ./vendor/bin/simple-phpunit

composer.json

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,14 @@
1313
],
1414
"require": {
1515
"php": "^5.4|^7",
16-
"symfony/symfony": "^2.3|^3",
17-
"sensio/framework-extra-bundle": "^3|^4"
16+
"symfony/symfony": "^2.4|^3|^4|^5",
17+
"sensio/framework-extra-bundle": "^3|^4|^5"
1818
},
1919
"require-dev": {
20-
"phpunit/phpunit": "^4.0",
21-
"mockery/mockery": "^0.9.5",
22-
"jms/serializer-bundle": "^1"
20+
"symfony/phpunit-bridge": "^3.4.19|^4.1.8|^5",
21+
"mockery/mockery": "^0.9.5|^1",
22+
"phpoption/phpoption": "^1.1",
23+
"jms/serializer-bundle": "^1|^2|^3"
2324
},
2425
"suggest": {
2526
"jms/serializer-bundle": "For serializing with the JMS Serializer"

0 commit comments

Comments
 (0)