Skip to content

Commit b5841b6

Browse files
jjmonagasmmoreram
authored andcommitted
Added Symfony4 dependencies in composer.json
Removed symfony/symfony dependency and added only necessary dependencies Added new travis test for PHP 7.1 with Sf beta version
1 parent 1b8c640 commit b5841b6

File tree

2 files changed

+16
-5
lines changed

2 files changed

+16
-5
lines changed

.travis.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,23 @@ language: php
33
sudo: false
44

55
matrix:
6+
fast_finish: true
67
include:
78
- php: 7.1
89
env: $SYMFONY_VERSION="^3.2"
10+
# test the latest release (including beta releases)
11+
- php: 7.1
12+
env: DEPENDENCIES=beta
913

1014
before_install:
1115
- 'if [ "$SYMFONY_VERSION" != "" ]; then composer require --no-update symfony/symfony:${SYMFONY_VERSION}; fi;'
1216

1317
install:
1418
- composer update --prefer-source --no-interaction ${COMPOSER_OPTIONS}
1519

20+
before_script:
21+
- if [ "$DEPENDENCIES" = "beta" ]; then composer config minimum-stability beta; fi;
22+
1623
script:
1724
- php vendor/bin/phpunit
1825

composer.json

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@
2525
"require": {
2626
"php": ">=7.1",
2727
"doctrine/common": "^2.5",
28-
"symfony/config": "^3.2",
29-
"symfony/http-kernel": "^3.2",
30-
"symfony/http-foundation": "^3.2",
31-
"symfony/dependency-injection": "^3.2",
28+
"symfony/config": "^3.2 || ^4.0",
29+
"symfony/http-kernel": "^3.2 || ^4.0",
30+
"symfony/http-foundation": "^3.2 || ^4.0",
31+
"symfony/dependency-injection": "^3.2 || ^4.0",
3232
"mmoreram/base-bundle": "^1.0.3",
3333
"mmoreram/symfony-bundle-dependencies": "^2.0"
3434
},
@@ -37,7 +37,11 @@
3737
"doctrine/annotations": "^1.2",
3838
"doctrine/orm": "^2.5.6",
3939

40-
"symfony/symfony": "^3.2",
40+
"symfony/yaml": "^3.2 || ^4.0",
41+
"symfony/translation": "^3.2 || ^4.0",
42+
"symfony/validator": "^3.2 || ^4.0",
43+
"symfony/browser-kit": "^3.2 || ^4.0",
44+
"symfony/form": "^3.2 || ^4.0",
4145
"symfony/monolog-bundle": "^3.0",
4246
"pagerfanta/pagerfanta": "~1.0",
4347
"knplabs/knp-paginator-bundle": "^2.5",

0 commit comments

Comments
 (0)