Skip to content

Commit 4e1f696

Browse files
authored
Drop old versions and bump php to 7.2 (#64)
* Drop old versions * Updated readme * Adding changelog * CI updates
1 parent e22fd05 commit 4e1f696

8 files changed

+44
-33
lines changed

.travis.yml

+7-14
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,9 @@ cache:
1010
env:
1111
global:
1212
- TEST_COMMAND="composer test"
13-
- SYMFONY_PHPUNIT_VERSION="6.3"
13+
- SYMFONY_PHPUNIT_VERSION="8.5"
1414
- SYMFONY_PHPUNIT_DIR="$HOME/symfony-bridge/.phpunit"
15+
- SYMFONY_DEPRECATIONS_HELPER="max[self]=0"
1516

1617
branches:
1718
except:
@@ -23,23 +24,17 @@ matrix:
2324
include:
2425
# Minimum supported Symfony version and latest PHP version
2526
- php: 7.2
26-
env: COMPOSER_FLAGS="--prefer-stable --prefer-lowest" SYMFONY_DEPRECATIONS_HELPER="weak" SYMFONY_PHPUNIT_VERSION="5.7"
27-
- php: 5.5
28-
env: COMPOSER_FLAGS="--prefer-stable --prefer-lowest" SYMFONY_DEPRECATIONS_HELPER="weak" SYMFONY_PHPUNIT_VERSION="5.7"
27+
env: COMPOSER_FLAGS="--prefer-stable --prefer-lowest" SYMFONY_DEPRECATIONS_HELPER="weak"
28+
- php: 7.4
29+
env: COMPOSER_FLAGS="--prefer-stable --prefer-lowest" SYMFONY_DEPRECATIONS_HELPER="weak"
2930

3031
# Test the latest stable release
31-
- php: 5.5
32-
env: SYMFONY_PHPUNIT_VERSION="5.7"
33-
- php: 5.6
34-
env: SYMFONY_PHPUNIT_VERSION="5.7"
35-
- php: 7.0
36-
- php: 7.1
3732
- php: 7.2
33+
- php: 7.3
34+
- php: 7.4
3835
env: COVERAGE=true TEST_COMMAND="composer test-ci"
3936

4037
# Test LTS versions
41-
- php: 7.2
42-
env: DEPENDENCIES="dunglas/symfony-lock:^2"
4338
- php: 7.2
4439
env: DEPENDENCIES="dunglas/symfony-lock:^3"
4540
- php: 7.2
@@ -59,8 +54,6 @@ before_install:
5954
- if ! [ -v "$DEPENDENCIES" ]; then composer require --no-update ${DEPENDENCIES}; fi;
6055

6156
install:
62-
# To be removed when this issue will be resolved: https://github.com/composer/composer/issues/5355
63-
- if [[ "$COMPOSER_FLAGS" == *"--prefer-lowest"* ]]; then composer update --prefer-dist --no-interaction --prefer-stable --quiet; fi
6457
- composer update ${COMPOSER_FLAGS} --prefer-dist --no-interaction
6558
- vendor/bin/simple-phpunit install
6659

Changelog.md

+12
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,17 @@
11
# Changelog
22

3+
## 2.3.0
4+
5+
### Added
6+
7+
- Support for Google cloud storage
8+
- Support for Symfony 5
9+
10+
### Changed
11+
12+
- Removed support for PHP < 7.2
13+
- Removed support Symfony < 3.4
14+
315
## 2.2.0
416

517
### Fixed

Command/BackupCommand.php

+2
Original file line numberDiff line numberDiff line change
@@ -69,5 +69,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
6969
}
7070

7171
$this->manager->makeBackup()->run($input->getArgument('database'), $destinations, $input->getOption('compression'));
72+
73+
return 0;
7274
}
7375
}

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ php bin/console backup-manager:restore development s3 test/backup.sql.gz -c gzip
167167
Requirements
168168
============
169169

170-
- PHP 5.5
170+
- PHP 7.2
171171
- MySQL support requires `mysqldump` and `mysql` command-line binaries
172172
- PostgreSQL support requires `pg_dump` and `psql` command-line binaries
173173
- Gzip support requires `gzip` and `gunzip` command-line binaries

Tests/Functional/BundleInitializationTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ protected function getBundleClass()
1414
return BMBackupManagerBundle::class;
1515
}
1616

17-
protected function setUp()
17+
protected function setUp(): void
1818
{
1919
$this->addCompilerPass(new PublicServicePass('|backup_manager.*|'));
2020
$this->addCompilerPass(new PublicServicePass('|backup_manager|'));

Tests/Unit/DependencyInjection/BMBackupManagerExtensionTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
*/
1313
class BMBackupManagerExtensionTest extends AbstractExtensionTestCase
1414
{
15-
protected function getContainerExtensions()
15+
protected function getContainerExtensions(): array
1616
{
1717
return array(
1818
new BMBackupManagerExtension()

composer.json

+19-15
Original file line numberDiff line numberDiff line change
@@ -5,29 +5,33 @@
55
"type": "symfony-bundle",
66
"license": "MIT",
77
"authors": [
8+
{
9+
"name": "Tobias Nyholm",
10+
"email": "[email protected]"
11+
},
812
{
913
"name": "Luiz Henrique Gomes Palácio",
1014
"email": "[email protected]"
1115
}
1216
],
1317
"require": {
14-
"php": "^5.5 || ^7.0",
18+
"php": "^7.2",
1519
"backup-manager/backup-manager": "^1.3",
16-
"nyholm/dsn": "^0.1",
17-
"symfony/config": "^2.7 || ^3.1 || ^4.0 || ^5.0",
18-
"symfony/console": "^2.7 || ^3.1 || ^4.0 || ^5.0",
19-
"symfony/dependency-injection": "^2.7 || ^3.1 || ^4.0 || ^5.0",
20-
"symfony/filesystem": "^2.7 || ^3.1 || ^4.0 || ^5.0",
21-
"symfony/framework-bundle": "^2.7 || ^3.0 || ^4.0 || ^5.0",
22-
"symfony/http-kernel": "^2.7 || ^3.0 || ^4.0 || ^5.0",
23-
"symfony/yaml": "^2.7 || ^3.0 || ^4.0 || ^5.0"
20+
"nyholm/dsn": "^1.0",
21+
"symfony/config": "^3.4 || ^4.4 || ^5.0",
22+
"symfony/console": "^3.4 || ^4.4 || ^5.0",
23+
"symfony/dependency-injection": "^3.4 || ^4.4 || ^5.0",
24+
"symfony/filesystem": "^3.4 || ^4.4 || ^5.0",
25+
"symfony/framework-bundle": "^3.4 || ^4.4 || ^5.0",
26+
"symfony/http-kernel": "^3.4 || ^4.4 || ^5.0",
27+
"symfony/yaml": "^3.4 || ^4.4 || ^5.0"
2428
},
2529
"require-dev": {
26-
"matthiasnoback/symfony-dependency-injection-test": "^1.2 || ^2.3",
27-
"matthiasnoback/symfony-config-test": "^2.2 || ^3.1",
28-
"nyholm/symfony-bundle-test": "^1.3.1",
29-
"superbalist/flysystem-google-storage": "^6.0 || ^ 7.0",
30-
"symfony/phpunit-bridge": "^3.4 || ^4.0 || ^5.0"
30+
"matthiasnoback/symfony-dependency-injection-test": "^4.1",
31+
"matthiasnoback/symfony-config-test": "^4.1",
32+
"nyholm/symfony-bundle-test": "^1.6",
33+
"superbalist/flysystem-google-storage": "^6.0 || ^7.0",
34+
"symfony/phpunit-bridge": "^5.0"
3135
},
3236
"suggest": {
3337
"league/flysystem-aws-s3-v3": "To use AWS S3, version 3",
@@ -49,7 +53,7 @@
4953
},
5054
"extra": {
5155
"branch-alias": {
52-
"dev-master": "2.0-dev"
56+
"dev-master": "2.3-dev"
5357
}
5458
}
5559
}

phpunit.xml.dist

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
convertErrorsToExceptions="true"
66
convertNoticesToExceptions="true"
77
convertWarningsToExceptions="true"
8-
syntaxCheck="true">
8+
>
99
<php>
1010
<env name="SHELL_VERBOSITY" value="-1" />
1111
</php>

0 commit comments

Comments
 (0)