Skip to content
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
11 changes: 10 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,18 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

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

### Added

- Add support for PHP 8.5
- Add support for Redmine 6.1.

### Changed

- Behaviour-driven tests are run against Redmine 6.0.7, 5.1.10, 5.0.14.
- Behaviour-driven tests are run against Redmine 6.1.0, 6.0.7, 5.1.10.

### Removed

- Drop support for Redmine 5.0.x.

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

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@ like [Guzzle](https://github.com/guzzle/guzzle) for handling http connections
We support (and run tests against) the [latest supported Redmine versions](https://www.redmine.org/projects/redmine/wiki/Download#Versions-status-and-releases-policy)
that receive security updates.

- Redmine 6.1.x
- Redmine 6.0.x
- Redmine 5.1.x
- Redmine 5.0.x

Nevertheless, you can also use this library for all older Redmine versions.
In this case, however, be aware that some features might not be supported by your Redmine server.
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,9 @@
"scripts": {
"bdt": [
"Composer\\Config::disableProcessTimeout",
"@behat --format=progress --suite=redmine_6_1",
"@behat --format=progress --suite=redmine_6_0",
"@behat --format=progress --suite=redmine_5_1",
"@behat --format=progress --suite=redmine_5_0"
"@behat --format=progress --suite=redmine_5_1"
],
"behat": "behat --config tests/Behat/behat.yml",
"codestyle": "php-cs-fixer fix",
Expand Down
27 changes: 14 additions & 13 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ services:
- ./:/var/www/project/ # Location of the project for php-fpm. Note this should be the same for NGINX.*

redmine-dev:
image: redmine:6.0.7
image: redmine:6.1.0
ports:
- "3000:3000"
environment:
Expand All @@ -26,6 +26,19 @@ services:
# Make sure the following services are configured in:
# - /tests/Behat/behat.yml

redmine-6-1:
image: redmine:6.1.0
ports:
- "5061:3000"
environment:
# Workaround: Remove secret for Rails 7.2 so it will be generated automatically
# @see https://github.com/docker-library/redmine/issues/349#issuecomment-2516634932
# REDMINE_SECRET_KEY_BASE: supersecretkey
REDMINE_PLUGINS_MIGRATE: true
volumes:
- ./.docker/redmine-60100_data/files:/usr/src/redmine/files
- ./.docker/redmine-60100_data/sqlite:/usr/src/redmine/sqlite

redmine-6-0:
image: redmine:6.0.7
ports:
Expand All @@ -50,15 +63,3 @@ services:
volumes:
- ./.docker/redmine-50110_data/files:/usr/src/redmine/files
- ./.docker/redmine-50110_data/sqlite:/usr/src/redmine/sqlite

redmine-5-0:
image: redmine:5.0.12 # There is no tag for 5.0.14 on Docker hub
user: "1000:1000"
ports:
- "5050:3000"
environment:
REDMINE_SECRET_KEY_BASE: supersecretkey
REDMINE_PLUGINS_MIGRATE: true
volumes:
- ./.docker/redmine-50014_data/files:/usr/src/redmine/files
- ./.docker/redmine-50014_data/sqlite:/usr/src/redmine/sqlite
20 changes: 10 additions & 10 deletions tests/Behat/behat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@ default:
default:
paths:
- '%paths.base%/features'
redmine_6_1:
contexts:
- Redmine\Tests\Behat\Bootstrap\FeatureContext:
redmineVersion: '6.1.0'
rootPath: '%paths.base%/../../.docker'
redmine_6_0:
contexts:
- Redmine\Tests\Behat\Bootstrap\FeatureContext:
Expand All @@ -13,14 +18,14 @@ default:
- Redmine\Tests\Behat\Bootstrap\FeatureContext:
redmineVersion: '5.1.10'
rootPath: '%paths.base%/../../.docker'
redmine_5_0:
contexts:
- Redmine\Tests\Behat\Bootstrap\FeatureContext:
redmineVersion: '5.0.14'
rootPath: '%paths.base%/../../.docker'

github-actions:
suites:
redmine_6_1:
contexts:
- Redmine\Tests\Behat\Bootstrap\FeatureContext:
redmineVersion: '6.1.0'
rootPath: '/home/runner/work/_temp'
redmine_6_0:
contexts:
- Redmine\Tests\Behat\Bootstrap\FeatureContext:
Expand All @@ -31,8 +36,3 @@ github-actions:
- Redmine\Tests\Behat\Bootstrap\FeatureContext:
redmineVersion: '5.1.10'
rootPath: '/home/runner/work/_temp'
redmine_5_0:
contexts:
- Redmine\Tests\Behat\Bootstrap\FeatureContext:
redmineVersion: '5.0.14'
rootPath: '/home/runner/work/_temp'
8 changes: 8 additions & 0 deletions tests/RedmineExtension/RedmineVersion.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,14 @@

enum RedmineVersion: string
{
/**
* Redmine 6.1.0
*
* @link https://www.redmine.org/versions/198
* @link https://www.redmine.org/projects/redmine/wiki/Changelog_6_1#610-2025-09-21
*/
case V6_1_0 = '6.1.0';

/**
* Redmine 6.0.7
*
Expand Down