Skip to content

Commit

Permalink
allow symfony 5, drop symfony 2 and php 5
Browse files Browse the repository at this point in the history
  • Loading branch information
dbu committed Jan 28, 2020
1 parent 564f540 commit c7f49dc
Show file tree
Hide file tree
Showing 5 changed files with 424 additions and 1,501 deletions.
26 changes: 17 additions & 9 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,28 +1,36 @@
language: php

php:
- 5.6
- 7.0
- 7.1
- 7.2
- 7.3
- 7.4

matrix:
include:
- php: 5.6
env: COMPOSER_FLAGS="--prefer-lowest"
- php: 7.0
env: SYMFONY_REQUIRE=3.4.* COMPOSER_FLAGS="--prefer-lowest"
- php: 7.4
env: SYMFONY_REQUIRE=4.3.*
- php: 7.4
env: SYMFONY_REQUIRE=4.4.*
- php: 7.4
env: SYMFONY_REQUIRE=5.0.*

branches:
only:
- master
# Build maintenance branches for older releases if needed. such branches should be named like "1.2"
- '/^\d+\.\d+$/'

before_script:
# Install deps
- composer update $COMPOSER_FLAGS --dev --prefer-source --no-interaction
- bash -c "if [[ '$TRAVIS_PHP_VERSION' == '7.'* ]] ; then wget https://phar.phpunit.de/phpunit-5.7.phar; fi"
before_install:
- composer global require --no-progress --no-scripts --no-plugins symfony/flex

install:
- composer update $COMPOSER_FLAGS --no-interaction
- vendor/bin/simple-phpunit install

script:
- bash -c "if [[ '$TRAVIS_PHP_VERSION' == '7.'* ]] ; then php phpunit-5.7.phar; fi"
- sh -c "if [ '$TRAVIS_PHP_VERSION' \< '7' ]; then phpunit; fi"
- composer validate --strict --no-check-lock
- vendor/bin/simple-phpunit
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@ This project adheres to [Semantic Versioning](http://semver.org/).
### Removed
### Security

## 1.9.0 (unreleased)

### Changed
- Allow installation with Symfony 5, drop support for unmaintained versions of Symfony
- Drop support for PHP 5

## [1.8.0](https://github.com/rokka-io/rokka-client-php-cli/releases/tag/1.8.0) - 2018-12-13

### Changed
Expand Down
16 changes: 8 additions & 8 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,17 @@
}
],
"require": {
"php": "^5.6 || ^7.0",
"php": "^7.0.8",
"rokka/client": "^1.9.0",
"symfony/console" : "^2.7 || ^3.0 || ^4.0",
"symfony/finder" : "^2.7 || ^3.0 || ^4.0",
"symfony/config": "^2.7 || ^3.0 || ^4.0",
"symfony/dependency-injection": "^2.7 || ^3.0 || ^4.0",
"symfony/yaml": "^2.7 || ^3.0 || ^4.0"
"symfony/console" : "^3.4 || ^4.3 || ^5.0",
"symfony/finder" : "^3.4 || ^4.3 || ^5.0",
"symfony/config": "^3.4 || ^4.3 || ^5.0",
"symfony/dependency-injection": "^3.4 || ^4.3 || ^5.0",
"symfony/yaml": "^3.4 || ^4.3 || ^5.0"
},
"require-dev": {
"friendsofphp/php-cs-fixer": "^2.1",
"phpunit/phpunit": "^5.7"
"symfony/phpunit-bridge": "^5.0"
},
"conflict": {
"rokka/client-bundle": "<1.1.0"
Expand All @@ -39,7 +39,7 @@
},
"config": {
"platform": {
"php": "5.6.0"
"php": "7.0.8"
},
"sort-packages": true
}
Expand Down
Loading

0 comments on commit c7f49dc

Please sign in to comment.