Skip to content

Commit 4243bbe

Browse files
authored
Merge pull request #339 from sanak/support-redmine-6-with-5
Support Redmine 5
2 parents a9d2d62 + faa6e63 commit 4243bbe

File tree

2 files changed

+15
-14
lines changed

2 files changed

+15
-14
lines changed

.github/workflows/test-postgis.yml

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -25,16 +25,16 @@ jobs:
2525
strategy:
2626
fail-fast: false
2727
matrix:
28-
redmine_version: [5.0-stable, 5.1-stable, master]
29-
ruby_version: ['3.0', '3.1', '3.2']
30-
db_version: [12-3.4, 16-3.4]
28+
redmine_version: [5.1-stable, 6.0-stable, master]
29+
ruby_version: ['3.1', '3.2', '3.3']
30+
db_version: [13-3.4, 17-3.5]
3131
include:
3232
- system_test: true
33-
redmine_version: 5.1-stable
34-
ruby_version: '3.2'
33+
redmine_version: 6.0-stable
34+
ruby_version: '3.3'
3535
exclude:
36-
- redmine_version: 5.0-stable
37-
ruby_version: '3.2'
36+
- redmine_version: 5.1-stable
37+
ruby_version: '3.3'
3838
- redmine_version: master
3939

4040
services:
@@ -106,8 +106,9 @@ jobs:
106106
- name: Adjust Gem environment
107107
run: |
108108
case "${{ matrix.redmine_version }}" in
109-
master)
110-
echo "GEM_ACTIVERECORD_POSTGIS_ADAPTER_VERSION=9.0.1" >> ${GITHUB_ENV}
109+
5.1-stable)
110+
echo "GEM_RGEO_ACTIVERECORD_VERSION=7.0.1" >> ${GITHUB_ENV}
111+
echo "GEM_ACTIVERECORD_POSTGIS_ADAPTER_VERSION=7.1.1" >> ${GITHUB_ENV}
111112
;;
112113
esac
113114
@@ -142,11 +143,11 @@ jobs:
142143
GOOGLE_CHROME_OPTS_ARGS: "headless,disable-gpu,no-sandbox,disable-dev-shm-usage"
143144
working-directory: redmine
144145
run: |
145-
bundle exec rake redmine:plugins:test:units NAME=${{ env.PLUGIN_NAME }} RUBYOPT="-W0"
146-
bundle exec rake redmine:plugins:test:functionals NAME=${{ env.PLUGIN_NAME }} RUBYOPT="-W0"
147-
bundle exec rake redmine:plugins:test:integration NAME=${{ env.PLUGIN_NAME }} RUBYOPT="-W0"
146+
bundle exec rails test plugins/redmine_gtt/test/unit
147+
bundle exec rails test plugins/redmine_gtt/test/functional
148+
bundle exec rails test plugins/redmine_gtt/test/integration
148149
if [ ${{ matrix.system_test }} = "true" ]; then
149-
bundle exec rake redmine:plugins:test:system NAME=${{ env.PLUGIN_NAME }} RUBYOPT="-W0"
150+
bundle exec rails test plugins/redmine_gtt/test/system
150151
fi
151152
152153
- name: Run uninstall test

app/views/gtt_map_layers/index.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<div class="contextual">
2-
<%= link_to sprite_icon('add', t('map_layer.new')), new_gtt_map_layer_path, :class => 'icon icon-add' %>
2+
<%= link_to (Redmine::VERSION.to_s >= '6.0.0') ? sprite_icon('add', t('map_layer.new')) : t('map_layer.new'), new_gtt_map_layer_path, :class => 'icon icon-add' %>
33
</div>
44

55
<%= title t('map_layer.plural') %>

0 commit comments

Comments
 (0)