Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

allow symfony 5, drop symfony 2 and php 5 #46

Merged
merged 1 commit into from
Jan 28, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 18 additions & 9 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,28 +1,37 @@
language: php

php:
- 5.6
- 7.0
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

7.0 (and 7.1) are not supported by php anymore

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah, but some people are stuck on outdated infrastructure. as long as its not creating problems, i would prefer to allow older versions.

- 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
- if ! [ -z "$SYMFONY_REQUIRE" ]; then composer config --unset platform.php; fi;

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