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

Commit

Permalink
Merge pull request #308 from dunglas/sf4
Browse files Browse the repository at this point in the history
Symfony 4 compatiblity. Test with PHP 7+.
  • Loading branch information
ciaranmcnulty authored Nov 24, 2017
2 parents c85f327 + 0e3dd0a commit badc565
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 18 deletions.
27 changes: 14 additions & 13 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,32 +7,33 @@ cache:
- $HOME/.composer/cache/files

php:
- 5.3
- 5.4
- 5.5
- 5.6
- 7.0
- 7.1
- 7.2
- hhvm

matrix:
include:
- php: 5.5
env: SYMFONY_VERSION='2.3.*'
- php: 5.3
dist: precise
- php: 7.2
env: SYMFONY_VERSION='^2'
- php: 7.2
env: SYMFONY_VERSION='^3'
# Test against dev dependencies
- php: 5.6
- php: 7.2
env: DEPS=dev

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

install:
- composer install --no-progress

before_script:
- export PATH=./vendor/bin:$PATH
- export PATH=./vendor/bin:$PATH

script:
- phpspec run -f pretty
- behat -fprogress --strict
- vendor/bin/phpspec run -f pretty
- vendor/bin/behat -fprogress --strict
10 changes: 5 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@

"require": {
"php": ">=5.3.2",
"behat/behat": "~3.0,>=3.0.5",
"behat/mink": "~1.5",
"symfony/config": "~2.2|~3.0"
"behat/behat": "^3.0.5",
"behat/mink": "^1.5",
"symfony/config": "^2.7|^3.0|^4.0"
},

"require-dev": {
"phpspec/phpspec": "~2.0",
"behat/mink-goutte-driver": "~1.1"
"behat/mink-goutte-driver": "^1.1",
"phpspec/phpspec": "^2.0"
},

"autoload": {
Expand Down

0 comments on commit badc565

Please sign in to comment.