Skip to content

Commit

Permalink
Add support and behat tests for Redmine 6.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Art4 committed Jan 20, 2025
1 parent 9939780 commit 4e2f11b
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 2 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Added

- Support for Redmine 6.0.x was added.
- New class `Redmine\Http\HttpFactory` to create `Redmine\Http\Request` and `Redmine\Http\Response` instances.

### Changed

- Behaviour-driven tests are run against Redmine 5.1.4, 5.0.10 and 4.2.10.
- Behaviour-driven tests are run against Redmine 6.0.2, 5.1.4, 5.0.10.

### Deprecated

Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ 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.0.x
- Redmine 5.1.x
- Redmine 5.0.x

Expand Down
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@
"scripts": {
"bdt": [
"Composer\\Config::disableProcessTimeout",
"@behat --format=progress --suite=redmine_50104",
"@behat --format=progress --suite=redmine_60002",
"@behat --format=progress --suite=redmine_50105",
"@behat --format=progress --suite=redmine_50010"
],
"behat": "behat --config tests/Behat/behat.yml",
Expand Down
13 changes: 13 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,19 @@ services:
# Make sure the following services are configured in:
# - /tests/Behat/behat.yml

redmine-60002:
image: redmine:6.0.2
ports:
- "6002: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-60002_data/files:/usr/src/redmine/files
- ./.docker/redmine-60002_data/sqlite:/usr/src/redmine/sqlite

redmine-50105:
image: redmine:5.1.5
user: "1000:1000"
Expand Down
6 changes: 6 additions & 0 deletions tests/Behat/behat.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
default:
suites:
redmine_60002:
paths:
- '%paths.base%/features'
contexts:
- Redmine\Tests\Behat\Bootstrap\FeatureContext:
redmineVersion: '6.0.2'
redmine_50105:
paths:
- '%paths.base%/features'
Expand Down

0 comments on commit 4e2f11b

Please sign in to comment.