-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: rm 1.9 & 3.1 support, add auto release
- Loading branch information
1 parent
c6ae751
commit 01bfe56
Showing
7 changed files
with
43 additions
and
50 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,30 +1,34 @@ | ||
matrix: | ||
include: | ||
- DOCKER_RUBY_VERSION: "2.2" | ||
RUBY_IMAGE_TAG: "2.2-1" | ||
|
||
- DOCKER_RUBY_VERSION: "1.9.3" | ||
RUBY_IMAGE_TAG: "1.9.3-2" | ||
|
||
build: | ||
image: abakpress/dind:2 | ||
privileged: true | ||
volumes: | ||
- /home/data/drone/images:/images | ||
- /home/data/drone/gems:/bundle | ||
- /home/data/drone/key_cache:/ssh_keys | ||
environment: | ||
- COMPOSE_FILE_EXT=drone | ||
- RAILS_ENV=test | ||
commands: | ||
- wrapdocker docker -v | ||
test: | ||
image: abakpress/dind-testing | ||
privileged: true | ||
volumes: | ||
- /home/data/drone/images:/images | ||
- /home/data/drone/gems:/bundle | ||
- /home/data/drone/key_cache:/ssh_keys | ||
environment: | ||
- COMPOSE_FILE_EXT=drone | ||
- RAILS_ENV=test | ||
- RUBY_IMAGE_TAG=2.2-latest | ||
- POSTGRES_IMAGE_TAG=9.3-latest | ||
- REDIS_IMAGE_TAG=3-alpine | ||
commands: | ||
- wrapdocker docker -v | ||
|
||
- if [ ! -e /images/ssh-agent.tar ]; then docker pull whilp/ssh-agent; docker save whilp/ssh-agent > /images/ssh-agent.tar; fi | ||
- if [ ! -e /images/ruby_$RUBY_IMAGE_TAG.tar ]; then docker pull abakpress/ruby:$RUBY_IMAGE_TAG; docker save abakpress/ruby:$RUBY_IMAGE_TAG > /images/ruby_$RUBY_IMAGE_TAG.tar; fi | ||
- 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 | ||
|
||
- docker load -i /images/ssh-agent.tar | ||
- docker load -i /images/ruby_$RUBY_IMAGE_TAG.tar | ||
- dip ssh add -T -v /ssh_keys -k /ssh_keys/id_rsa | ||
- dip provision | ||
- dip rspec | ||
|
||
- dip ssh add -T -v /ssh_keys -k /ssh_keys/id_rsa | ||
- dip provision | ||
- dip rspec | ||
release: | ||
image: abakpress/gem-publication | ||
pull: true | ||
when: | ||
event: push | ||
commands: | ||
- release-gem |
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,7 +1,3 @@ | ||
appraise 'activesupport3.1' do | ||
gem 'activesupport', '~> 3.1.0' | ||
end if RUBY_VERSION < '2' | ||
|
||
appraise 'activesupport3.2' do | ||
gem 'activesupport', '~> 3.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