Skip to content

Commit

Permalink
chore: add ruby 2.4 support
Browse files Browse the repository at this point in the history
  • Loading branch information
TamarinEA committed Jul 21, 2021
1 parent e21035d commit e8dc29d
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 12 deletions.
15 changes: 12 additions & 3 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ volumes:
path: /home/data/drone/key_cache

spec_step_common: &spec_step_common
image: abakpress/dind-testing
pull: always
image: abakpress/dind-testing:1.0.3
pull: if-not-exists
privileged: true
volumes:
- name: images
Expand Down Expand Up @@ -56,9 +56,18 @@ steps:
RAILS_ENV: test
<<: *spec_step_common

- name: Tests Ruby 2.4
environment:
COMPOSE_FILE_EXT: drone
DOCKER_RUBY_VERSION: 2.4
RUBY_IMAGE_TAG: 2.4-latest
POSTGRES_IMAGE_TAG: 9.6-latest
RAILS_ENV: test
<<: *spec_step_common

- name: release
image: abakpress/gem-publication:latest
pull: true
pull: if-not-exists
when:
event: push
branch: master
Expand Down
10 changes: 4 additions & 6 deletions Appraisals
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
appraise 'rails4.0' do
gem 'rails', '~> 4.0.0'
end

appraise 'rails4.1' do
gem 'rails', '~> 4.1.0'
if RUBY_VERSION < '2.4'
appraise 'rails4.0' do
gem 'rails', '~> 4.0.0'
end
end

appraise 'rails4.2' do
Expand Down
6 changes: 3 additions & 3 deletions dip.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
version: '1'

environment:
DOCKER_RUBY_VERSION: 2.2
RUBY_IMAGE_TAG: 2.2-latest
DOCKER_RUBY_VERSION: 2.3
RUBY_IMAGE_TAG: 2.3-latest
POSTGRES_IMAGE_TAG: 9.3-latest
REDIS_IMAGE_TAG: 3-alpine
REDIS_IMAGE_TAG: 4-alpine
COMPOSE_FILE_EXT: development
RAILS_ENV: test
APRESS_GEMS_CREDENTIALS: ""
Expand Down

0 comments on commit e8dc29d

Please sign in to comment.