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

Commit badc565

Browse files
Merge pull request #308 from dunglas/sf4
Symfony 4 compatiblity. Test with PHP 7+.
2 parents c85f327 + 0e3dd0a commit badc565

File tree

2 files changed

+19
-18
lines changed

2 files changed

+19
-18
lines changed

.travis.yml

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -7,32 +7,33 @@ cache:
77
- $HOME/.composer/cache/files
88

99
php:
10-
- 5.3
1110
- 5.4
1211
- 5.5
1312
- 5.6
13+
- 7.0
14+
- 7.1
15+
- 7.2
1416
- hhvm
1517

1618
matrix:
1719
include:
18-
- php: 5.5
19-
env: SYMFONY_VERSION='2.3.*'
20+
- php: 5.3
21+
dist: precise
22+
- php: 7.2
23+
env: SYMFONY_VERSION='^2'
24+
- php: 7.2
25+
env: SYMFONY_VERSION='^3'
2026
# Test against dev dependencies
21-
- php: 5.6
27+
- php: 7.2
2228
env: DEPS=dev
2329

2430
before_install:
25-
- composer self-update
26-
- if [ "$SYMFONY_VERSION" != "" ]; then composer require --no-update symfony/symfony=$SYMFONY_VERSION; fi;
27-
- if [ "$DEPS" = 'dev' ]; then perl -pi -e 's/^}$/,"minimum-stability":"dev"}/' composer.json; fi;
31+
- if [ "$SYMFONY_VERSION" != "" ]; then composer require --no-update symfony/lts=$SYMFONY_VERSION; fi;
32+
- if [ "$DEPS" = 'dev' ]; then composer config minimum-stability dev; fi;
2833

2934
install:
3035
- composer install --no-progress
3136

32-
before_script:
33-
- export PATH=./vendor/bin:$PATH
34-
- export PATH=./vendor/bin:$PATH
35-
3637
script:
37-
- phpspec run -f pretty
38-
- behat -fprogress --strict
38+
- vendor/bin/phpspec run -f pretty
39+
- vendor/bin/behat -fprogress --strict

composer.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,14 @@
1818

1919
"require": {
2020
"php": ">=5.3.2",
21-
"behat/behat": "~3.0,>=3.0.5",
22-
"behat/mink": "~1.5",
23-
"symfony/config": "~2.2|~3.0"
21+
"behat/behat": "^3.0.5",
22+
"behat/mink": "^1.5",
23+
"symfony/config": "^2.7|^3.0|^4.0"
2424
},
2525

2626
"require-dev": {
27-
"phpspec/phpspec": "~2.0",
28-
"behat/mink-goutte-driver": "~1.1"
27+
"behat/mink-goutte-driver": "^1.1",
28+
"phpspec/phpspec": "^2.0"
2929
},
3030

3131
"autoload": {

0 commit comments

Comments
 (0)