Skip to content

Commit 5a38b69

Browse files
authored
Merge pull request #453 from Art4/add-support-redmine-61
Add support for Redmine 6.1.0
2 parents ef5d168 + 5ccb1cd commit 5a38b69

File tree

6 files changed

+45
-27
lines changed

6 files changed

+45
-27
lines changed

CHANGELOG.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,18 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased](https://github.com/kbsali/php-redmine-api/compare/v2.8.0...v2.x)
99

10+
### Added
11+
12+
- Add support for PHP 8.5
13+
- Add support for Redmine 6.1.
14+
1015
### Changed
1116

12-
- Behaviour-driven tests are run against Redmine 6.0.7, 5.1.10, 5.0.14.
17+
- Behaviour-driven tests are run against Redmine 6.1.0, 6.0.7, 5.1.10.
18+
19+
### Removed
20+
21+
- Drop support for Redmine 5.0.x.
1322

1423
## [v2.8.0](https://github.com/kbsali/php-redmine-api/compare/v2.7.0...v2.8.0) - 2025-05-30
1524

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,9 @@ like [Guzzle](https://github.com/guzzle/guzzle) for handling http connections
3838
We support (and run tests against) the [latest supported Redmine versions](https://www.redmine.org/projects/redmine/wiki/Download#Versions-status-and-releases-policy)
3939
that receive security updates.
4040

41+
- Redmine 6.1.x
4142
- Redmine 6.0.x
4243
- Redmine 5.1.x
43-
- Redmine 5.0.x
4444

4545
Nevertheless, you can also use this library for all older Redmine versions.
4646
In this case, however, be aware that some features might not be supported by your Redmine server.

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,9 @@
5353
"scripts": {
5454
"bdt": [
5555
"Composer\\Config::disableProcessTimeout",
56+
"@behat --format=progress --suite=redmine_6_1",
5657
"@behat --format=progress --suite=redmine_6_0",
57-
"@behat --format=progress --suite=redmine_5_1",
58-
"@behat --format=progress --suite=redmine_5_0"
58+
"@behat --format=progress --suite=redmine_5_1"
5959
],
6060
"behat": "behat --config tests/Behat/behat.yml",
6161
"codestyle": "php-cs-fixer fix",

docker-compose.yml

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ services:
1111
- ./:/var/www/project/ # Location of the project for php-fpm. Note this should be the same for NGINX.*
1212

1313
redmine-dev:
14-
image: redmine:6.0.7
14+
image: redmine:6.1.0
1515
ports:
1616
- "3000:3000"
1717
environment:
@@ -26,6 +26,19 @@ services:
2626
# Make sure the following services are configured in:
2727
# - /tests/Behat/behat.yml
2828

29+
redmine-6-1:
30+
image: redmine:6.1.0
31+
ports:
32+
- "5061:3000"
33+
environment:
34+
# Workaround: Remove secret for Rails 7.2 so it will be generated automatically
35+
# @see https://github.com/docker-library/redmine/issues/349#issuecomment-2516634932
36+
# REDMINE_SECRET_KEY_BASE: supersecretkey
37+
REDMINE_PLUGINS_MIGRATE: true
38+
volumes:
39+
- ./.docker/redmine-60100_data/files:/usr/src/redmine/files
40+
- ./.docker/redmine-60100_data/sqlite:/usr/src/redmine/sqlite
41+
2942
redmine-6-0:
3043
image: redmine:6.0.7
3144
ports:
@@ -50,15 +63,3 @@ services:
5063
volumes:
5164
- ./.docker/redmine-50110_data/files:/usr/src/redmine/files
5265
- ./.docker/redmine-50110_data/sqlite:/usr/src/redmine/sqlite
53-
54-
redmine-5-0:
55-
image: redmine:5.0.12 # There is no tag for 5.0.14 on Docker hub
56-
user: "1000:1000"
57-
ports:
58-
- "5050:3000"
59-
environment:
60-
REDMINE_SECRET_KEY_BASE: supersecretkey
61-
REDMINE_PLUGINS_MIGRATE: true
62-
volumes:
63-
- ./.docker/redmine-50014_data/files:/usr/src/redmine/files
64-
- ./.docker/redmine-50014_data/sqlite:/usr/src/redmine/sqlite

tests/Behat/behat.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@ default:
33
default:
44
paths:
55
- '%paths.base%/features'
6+
redmine_6_1:
7+
contexts:
8+
- Redmine\Tests\Behat\Bootstrap\FeatureContext:
9+
redmineVersion: '6.1.0'
10+
rootPath: '%paths.base%/../../.docker'
611
redmine_6_0:
712
contexts:
813
- Redmine\Tests\Behat\Bootstrap\FeatureContext:
@@ -13,14 +18,14 @@ default:
1318
- Redmine\Tests\Behat\Bootstrap\FeatureContext:
1419
redmineVersion: '5.1.10'
1520
rootPath: '%paths.base%/../../.docker'
16-
redmine_5_0:
17-
contexts:
18-
- Redmine\Tests\Behat\Bootstrap\FeatureContext:
19-
redmineVersion: '5.0.14'
20-
rootPath: '%paths.base%/../../.docker'
2121

2222
github-actions:
2323
suites:
24+
redmine_6_1:
25+
contexts:
26+
- Redmine\Tests\Behat\Bootstrap\FeatureContext:
27+
redmineVersion: '6.1.0'
28+
rootPath: '/home/runner/work/_temp'
2429
redmine_6_0:
2530
contexts:
2631
- Redmine\Tests\Behat\Bootstrap\FeatureContext:
@@ -31,8 +36,3 @@ github-actions:
3136
- Redmine\Tests\Behat\Bootstrap\FeatureContext:
3237
redmineVersion: '5.1.10'
3338
rootPath: '/home/runner/work/_temp'
34-
redmine_5_0:
35-
contexts:
36-
- Redmine\Tests\Behat\Bootstrap\FeatureContext:
37-
redmineVersion: '5.0.14'
38-
rootPath: '/home/runner/work/_temp'

tests/RedmineExtension/RedmineVersion.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,14 @@
66

77
enum RedmineVersion: string
88
{
9+
/**
10+
* Redmine 6.1.0
11+
*
12+
* @link https://www.redmine.org/versions/198
13+
* @link https://www.redmine.org/projects/redmine/wiki/Changelog_6_1#610-2025-09-21
14+
*/
15+
case V6_1_0 = '6.1.0';
16+
917
/**
1018
* Redmine 6.0.7
1119
*

0 commit comments

Comments
 (0)