Skip to content
This repository was archived by the owner on Jul 29, 2024. It is now read-only.

Commit c63dbfd

Browse files
Add compatibility with symfony 3.* and 4.*
1 parent 9b7441e commit c63dbfd

5 files changed

Lines changed: 357 additions & 113 deletions

File tree

.travis.yml

Lines changed: 41 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,46 @@
11
language: php
22

3-
php:
4-
- 5.3.3
5-
- 5.3
6-
- 5.4
7-
- 5.5
8-
- 5.6
9-
- hhvm
3+
cache:
4+
directories:
5+
- $HOME/.composer/cache/files
6+
7+
before_install:
8+
phpenv config-rm xdebug.ini
109

1110
before_script:
12-
- composer self-update
13-
- composer install --prefer-source
11+
# Symfony 2.7
12+
- if [[ $SYMFONY_DEPS_VERSION = 2.7 ]]; then sed -i 's/~2\.1|~3\.0|~4\.0/2.7/g' composer.json; fi
13+
# Symfony 3.0
14+
- if [[ $SYMFONY_DEPS_VERSION = 3.4 ]]; then sed -i 's/~2\.1|~3\.0|~4\.0/3.0/g' composer.json; fi
15+
# Symfony 4.0
16+
- if [[ $SYMFONY_DEPS_VERSION = 3.1 ]]; then sed -i 's/~2\.1|~3\.0|~4\.0/4.0/g' composer.json; fi
17+
- composer update --no-suggest
18+
19+
script:
20+
phpunit --coverage-text
1421

15-
script: phpunit --coverage-text
22+
matrix:
23+
include:
24+
- php: 5.3
25+
env: SYMFONY_DEPS_VERSION=2.7
26+
dist: precise
27+
- php: 5.4
28+
env: SYMFONY_DEPS_VERSION=2.7
29+
- php: 5.5
30+
env: SYMFONY_DEPS_VERSION=2.7
31+
- php: 5.6
32+
env: SYMFONY_DEPS_VERSION=2.7
33+
- php: 5.5.9
34+
env: SYMFONY_DEPS_VERSION=3.4
35+
- php: 5.6
36+
env: SYMFONY_DEPS_VERSION=3.4
37+
- php: 7.0
38+
env: SYMFONY_DEPS_VERSION=3.4
39+
- php: 7.1
40+
env: SYMFONY_DEPS_VERSION=3.4
41+
- php: 7.2
42+
env: SYMFONY_DEPS_VERSION=3.4
43+
- php: 7.1.3
44+
env: SYMFONY_DEPS_VERSION=4.0
45+
- php: 7.2
46+
env: SYMFONY_DEPS_VERSION=4.0

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
],
1212
"require": {
1313
"php": ">=5.3.0",
14-
"symfony/http-foundation": "~2.1",
15-
"symfony/http-kernel": "~2.1"
14+
"symfony/http-foundation": "~2.7|~3.0|~4.0",
15+
"symfony/http-kernel": "~2.7|~3.0|~4.0"
1616
},
1717
"require-dev": {
1818
"stack/callable-http-kernel": "~1.0@dev"

0 commit comments

Comments
 (0)