Skip to content

Commit c2d0d47

Browse files
committed
Add support for redmine 4.2
1 parent 69a3896 commit c2d0d47

File tree

5 files changed

+40
-2
lines changed

5 files changed

+40
-2
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,12 @@ like [Guzzle](https://github.com/guzzle/guzzle) for handling http connections
2727

2828
## Supported Redmine versions
2929

30-
We support (and run tests against) the [latest Redmine versions](https://www.redmine.org/projects/redmine/wiki/Download#Latest-releases)
31-
that are actively maintained.
30+
We support (and run tests against) the [latest supported Redmine versions](https://www.redmine.org/projects/redmine/wiki/Download#Versions-status-and-releases-policy)
31+
that receive security updates.
3232

3333
- Redmine 5.1.x
3434
- Redmine 5.0.x
35+
- Redmine 4.2.x
3536

3637
Nevertheless, you can also use this library for all older Redmine versions.
3738
In this case, however, be aware that some features may not yet be supported by your Redmine server.

docker-compose.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,3 +51,17 @@ services:
5151
volumes:
5252
- ./.docker/redmine-50009_data/files:/usr/src/redmine/files
5353
- ./.docker/redmine-50009_data/sqlite:/usr/src/redmine/sqlite
54+
55+
redmine-40210:
56+
# Redmine 4.2.11 is not available on Docker Hub
57+
# @link https://hub.docker.com/_/redmine/tags?page=&page_size=&ordering=&name=4.2.11
58+
image: redmine:4.2.10
59+
user: "1000:1000"
60+
ports:
61+
- "4210:3000"
62+
environment:
63+
REDMINE_SECRET_KEY_BASE: supersecretkey
64+
REDMINE_PLUGINS_MIGRATE: true
65+
volumes:
66+
- ./.docker/redmine-40210_data/files:/usr/src/redmine/files
67+
- ./.docker/redmine-40210_data/sqlite:/usr/src/redmine/sqlite

tests/Behat/behat.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,9 @@ default:
1212
contexts:
1313
- Redmine\Tests\Behat\Bootstrap\FeatureContext:
1414
redmineVersion: '5.0.9'
15+
redmine_40210:
16+
paths:
17+
- '%paths.base%/features'
18+
contexts:
19+
- Redmine\Tests\Behat\Bootstrap\FeatureContext:
20+
redmineVersion: '4.2.10'

tests/RedmineExtension/RedmineInstance.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ public static function getSupportedVersions(): array
1919
return [
2020
RedmineVersion::V5_1_3,
2121
RedmineVersion::V5_0_9,
22+
RedmineVersion::V4_2_10,
2223
];
2324
}
2425

tests/RedmineExtension/RedmineVersion.php

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,22 @@ enum RedmineVersion: string
120120
*/
121121
case V5_0_0 = '5.0.0';
122122

123+
/**
124+
* Redmine 4.2.11
125+
*
126+
* @link https://www.redmine.org/versions/187
127+
* @link https://www.redmine.org/projects/redmine/wiki/Changelog_4_2#4211-2023-09-30
128+
*/
129+
case V4_2_11 = '4.2.11';
130+
131+
/**
132+
* Redmine 4.2.10
133+
*
134+
* @link https://www.redmine.org/versions/185
135+
* @link https://www.redmine.org/projects/redmine/wiki/Changelog_4_2#4210-2023-03-05
136+
*/
137+
case V4_2_10 = '4.2.10';
138+
123139
public function asString(): string
124140
{
125141
return $this->value;

0 commit comments

Comments
 (0)