-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
TamarinEA
committed
Aug 6, 2021
1 parent
4867f2d
commit 06cc372
Showing
8 changed files
with
94 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,83 @@ | ||
build: | ||
test: | ||
image: abakpress/dind-testing | ||
pull: true | ||
privileged: true | ||
volumes: | ||
- /home/data/drone/images:/images | ||
- /home/data/drone/gems:/bundle | ||
name: build | ||
|
||
kind: pipeline | ||
type: docker | ||
|
||
volumes: | ||
- name: images | ||
host: | ||
path: /home/data/drone/images | ||
- name: bundle | ||
host: | ||
path: /home/data/drone/gems | ||
- name: keys | ||
host: | ||
path: /home/data/drone/key_cache | ||
|
||
spec_step_common: &spec_step_common | ||
image: abakpress/dind-testing:1.0.3 | ||
pull: if-not-exists | ||
privileged: true | ||
volumes: | ||
- name: images | ||
path: /images | ||
- name: bundle | ||
path: /bundle | ||
- name: keys | ||
path: /ssh_keys | ||
commands: | ||
- prepare-build | ||
|
||
- fetch-images | ||
--image whilp/ssh-agent | ||
--image abakpress/ruby-app:$RUBY_IMAGE_TAG | ||
--image abakpress/postgres-db:$POSTGRES_IMAGE_TAG | ||
--image redis:$REDIS_IMAGE_TAG | ||
|
||
- dip ssh add -T -v /ssh_keys -k /ssh_keys/id_rsa | ||
- dip provision | ||
- dip rspec | ||
|
||
steps: | ||
- name: Tests Ruby 2.2 | ||
environment: | ||
- COMPOSE_FILE_EXT=drone | ||
- POSTGRES_IMAGE_TAG=9.6-latest | ||
- RUBY_IMAGE_TAG=2.2-latest | ||
commands: | ||
- wrapdocker docker -v | ||
COMPOSE_FILE_EXT: drone | ||
DOCKER_RUBY_VERSION: 2.2 | ||
RUBY_IMAGE_TAG: 2.2-latest | ||
POSTGRES_IMAGE_TAG: 9.6-latest | ||
REDIS_IMAGE_TAG: 4-alpine | ||
RAILS_ENV: test | ||
<<: *spec_step_common | ||
|
||
- fetch-images | ||
--image abakpress/ruby-app:$RUBY_IMAGE_TAG | ||
--image abakpress/postgres-db:$POSTGRES_IMAGE_TAG | ||
- name: Tests Ruby 2.3 | ||
environment: | ||
COMPOSE_FILE_EXT: drone | ||
DOCKER_RUBY_VERSION: 2.3 | ||
RUBY_IMAGE_TAG: 2.3-latest | ||
POSTGRES_IMAGE_TAG: 9.6-latest | ||
REDIS_IMAGE_TAG: 4-alpine | ||
RAILS_ENV: test | ||
<<: *spec_step_common | ||
|
||
- dip provision | ||
- dip rspec | ||
- 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 | ||
REDIS_IMAGE_TAG: 4-alpine | ||
RAILS_ENV: test | ||
<<: *spec_step_common | ||
|
||
release: | ||
image: abakpress/gem-publication | ||
pull: true | ||
- name: release | ||
image: abakpress/gem-publication:latest | ||
pull: if-not-exists | ||
when: | ||
event: push | ||
branch: master | ||
status: success | ||
volumes: | ||
- /home/data/drone/rubygems:/root/.gem | ||
- name: rubygems | ||
path: /root/.gem | ||
commands: | ||
- release-gem --public |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,3 +14,4 @@ | |
*.o | ||
*.a | ||
mkmf.log | ||
/.idea/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,11 @@ | ||
appraise 'rails3.2' do | ||
gem 'activesupport', '~> 3.2.14' | ||
gem 'activerecord', '~> 3.2.14' | ||
if RUBY_VERSION < '2.4' | ||
appraise 'rails4.0' do | ||
gem 'activesupport', '~> 4.0.0' | ||
gem 'activerecord', '~> 4.0.0' | ||
end | ||
end | ||
|
||
appraise 'rails4.0' do | ||
gem 'activesupport', '~> 4.0.0' | ||
gem 'activerecord', '~> 4.0.0' | ||
end | ||
|
||
appraise 'rails4.1' do | ||
gem 'activesupport', '~> 4.1.0' | ||
gem 'activerecord', '~> 4.1.0' | ||
appraise 'rails4.2' do | ||
gem 'activesupport', '~> 4.2.0' | ||
gem 'activerecord', '~> 4.2.0' | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters