Skip to content

Instantly share code, notes, and snippets.

@adelsjnr
Created April 22, 2019 22:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save adelsjnr/919c2af2441ea34baf070ded689e52d1 to your computer and use it in GitHub Desktop.
Save adelsjnr/919c2af2441ea34baf070ded689e52d1 to your computer and use it in GitHub Desktop.
---
kind: pipeline
name: default
platform:
os: linux
arch: amd64
steps:
- name: restore-cache
pull: default
image: drillster/drone-volume-cache
settings:
mount:
- ./vendor
restore: true
volumes:
- name: cache
path: /cache
- name: build
pull: default
image: ruby:2.4.5
depends_on: [ restore-cache ]
commands:
- bundle install --path vendor/bundle --with test --deployment
- ./dockerize -timeout 60s -wait tcp://mysql:3306 bundle exec rake db:create db:schema:load db:test:prepare
- ./dockerize -timeout 60s -wait tcp://elasticsearch:9200 bundle exec rake dispatcher:put_mappings
environment:
APP_REDIS_CORREIOS_HOST: redis
APP_REDIS_EXPERIMENTS_DB: redis
APP_REDIS_EXPERIMENTS_HOST: redis
APP_REDIS_HOST: redis
APP_REDIS_SEO_HOST: redis
APP_REDIS_SIDEKIQ_HOST: redis
DATABASE_HOSTNAME: mysql
DATABASE_NAME: getninjas_build
ELASTICSEARCH_URL: http://elasticsearch:9200
LANG: C.UTF-8
MEMCACHED_HOST: memcache
RAILS_ENV: test
- name: test_root
pull: default
image: ruby:2.4.5
depends_on: [ build ]
commands:
- bundle install --path vendor/bundle --with test --deployment
- ./dockerize -timeout 60s -wait tcp://mysql_group_1:3306 bundle exec rake db:create db:schema:load db:test:prepare
- "bundle exec rspec -P spec/*_spec.rb --profile"
environment:
APP_REDIS_CORREIOS_HOST: redis
APP_REDIS_EXPERIMENTS_HOST: redis
APP_REDIS_HOST: redis
APP_REDIS_SEO_HOST: redis
APP_REDIS_SIDEKIQ_HOST: redis
DATABASE_HOSTNAME: mysql_group_1
DATABASE_NAME: getninjas_test_root
ELASTICSEARCH_URL: http://elasticsearch:9200
MEMCACHED_HOST: memcache
RAILS_ENV: test
- name: test_controllers_root_1
pull: default
image: ruby:2.4.5
depends_on: [ build ]
commands:
- bundle install --path vendor/bundle --with test --deployment
- ./dockerize -timeout 60s -wait tcp://mysql_group_1:3306 bundle exec rake db:create db:schema:load db:test:prepare
- "bundle exec rspec -P \"spec/controllers/[a-j]*_spec.rb\" --profile"
environment:
APP_REDIS_CORREIOS_HOST: redis
APP_REDIS_EXPERIMENTS_HOST: redis
APP_REDIS_HOST: redis
APP_REDIS_SEO_HOST: redis
APP_REDIS_SIDEKIQ_HOST: redis
DATABASE_HOSTNAME: mysql_group_1
DATABASE_NAME: getninjas_test_controllers_root_1
ELASTICSEARCH_URL: http://elasticsearch:9200
MEMCACHED_HOST: memcache
RAILS_ENV: test
- name: test_controllers_root_2
pull: default
image: ruby:2.4.5
depends_on: [ build ]
commands:
- bundle install --path vendor/bundle --with test --deployment
- ./dockerize -timeout 60s -wait tcp://mysql_group_2:3306 bundle exec rake db:create db:schema:load db:test:prepare
- "bundle exec rspec -P \"spec/controllers/[k-z]*_spec.rb\" --profile"
environment:
APP_REDIS_CORREIOS_HOST: redis
APP_REDIS_EXPERIMENTS_HOST: redis
APP_REDIS_HOST: redis
APP_REDIS_SEO_HOST: redis
APP_REDIS_SIDEKIQ_HOST: redis
DATABASE_HOSTNAME: mysql_group_2
DATABASE_NAME: getninjas_test_controllers_root_2
ELASTICSEARCH_URL: http://elasticsearch:9200
MEMCACHED_HOST: memcache
RAILS_ENV: test
- name: test_controllers_1
pull: default
image: ruby:2.4.5
depends_on: [ build ]
commands:
- bundle install --path vendor/bundle --with test --deployment
- ./dockerize -timeout 60s -wait tcp://mysql_group_1:3306 bundle exec rake db:create db:schema:load db:test:prepare
- "bundle exec rspec -P \"spec/controllers/[a-j]*/*_spec.rb\" --profile"
environment:
APP_REDIS_CORREIOS_HOST: redis
APP_REDIS_EXPERIMENTS_HOST: redis
APP_REDIS_HOST: redis
APP_REDIS_SEO_HOST: redis
APP_REDIS_SIDEKIQ_HOST: redis
DATABASE_HOSTNAME: mysql_group_1
DATABASE_NAME: getninjas_test_controllers_1
ELASTICSEARCH_URL: http://elasticsearch:9200
MEMCACHED_HOST: memcache
RAILS_ENV: test
- name: test_controllers_2
pull: default
image: ruby:2.4.5
depends_on: [ build ]
commands:
- bundle install --path vendor/bundle --with test --deployment
- ./dockerize -timeout 60s -wait tcp://mysql_group_2:3306 bundle exec rake db:create db:schema:load db:test:prepare
- "bundle exec rspec -P \"spec/controllers/[k-z]*/*_spec.rb\" --profile"
environment:
APP_REDIS_CORREIOS_HOST: redis
APP_REDIS_EXPERIMENTS_HOST: redis
APP_REDIS_HOST: redis
APP_REDIS_SEO_HOST: redis
APP_REDIS_SIDEKIQ_HOST: redis
DATABASE_HOSTNAME: mysql_group_2
DATABASE_NAME: getninjas_test_controllers_2
ELASTICSEARCH_URL: http://elasticsearch:9200
MEMCACHED_HOST: memcache
RAILS_ENV: test
- name: test_decorators
pull: default
image: ruby:2.4.5
depends_on: [ build ]
commands:
- bundle install --path vendor/bundle --with test --deployment
- ./dockerize -timeout 60s -wait tcp://mysql_group_2:3306 bundle exec rake db:create db:schema:load db:test:prepare
- bundle exec rspec spec/decorators/ --profile
environment:
APP_REDIS_CORREIOS_HOST: redis
APP_REDIS_EXPERIMENTS_HOST: redis
APP_REDIS_HOST: redis
APP_REDIS_SEO_HOST: redis
APP_REDIS_SIDEKIQ_HOST: redis
DATABASE_HOSTNAME: mysql_group_2
DATABASE_NAME: getninjas_test_decorators
ELASTICSEARCH_URL: http://elasticsearch:9200
MEMCACHED_HOST: memcache
RAILS_ENV: test
- name: test_features_root_1
pull: default
image: getninjas/ruby:2.4.5-chromedriver
depends_on: [ build ]
commands:
- chromedriver -v
- google-chrome --version
- bundle install --path vendor/bundle --with test --deployment
- ./dockerize -timeout 60s -wait tcp://mysql_group_1:3306 bundle exec rake db:create db:schema:load db:test:prepare
- "bundle exec rspec -P \"spec/features/[a-j]*_spec.rb\" --profile"
environment:
APP_REDIS_CORREIOS_HOST: redis
APP_REDIS_EXPERIMENTS_HOST: redis
APP_REDIS_HOST: redis
APP_REDIS_SEO_HOST: redis
APP_REDIS_SIDEKIQ_HOST: redis
DATABASE_HOSTNAME: mysql_group_1
DATABASE_NAME: getninjas_test_features_root_1
ELASTICSEARCH_URL: http://elasticsearch:9200
MEMCACHED_HOST: memcache
RAILS_ENV: test
- name: test_features_root_2
pull: default
image: getninjas/ruby:2.4.5-chromedriver
depends_on: [ build ]
commands:
- chromedriver -v
- google-chrome --version
- bundle install --path vendor/bundle --with test --deployment
- ./dockerize -timeout 60s -wait tcp://mysql_group_2:3306 bundle exec rake db:create db:schema:load db:test:prepare
- "bundle exec rspec -P \"spec/features/[k-z]*_spec.rb\" --profile"
environment:
APP_REDIS_CORREIOS_HOST: redis
APP_REDIS_EXPERIMENTS_HOST: redis
APP_REDIS_HOST: redis
APP_REDIS_SEO_HOST: redis
APP_REDIS_SIDEKIQ_HOST: redis
DATABASE_HOSTNAME: mysql_group_2
DATABASE_NAME: getninjas_test_features_root_2
ELASTICSEARCH_URL: http://elasticsearch:9200
MEMCACHED_HOST: memcache
RAILS_ENV: test
- name: test_features_1
pull: default
image: getninjas/ruby:2.4.5-chromedriver
depends_on: [ build ]
commands:
- chromedriver -v
- google-chrome --version
- bundle install --path vendor/bundle --with test --deployment
- ./dockerize -timeout 60s -wait tcp://mysql_group_1:3306 bundle exec rake db:create db:schema:load db:test:prepare
- "bundle exec rspec -P \"spec/features/[a-j]*/*_spec.rb\" --profile"
environment:
APP_REDIS_CORREIOS_HOST: redis
APP_REDIS_EXPERIMENTS_HOST: redis
APP_REDIS_HOST: redis
APP_REDIS_SEO_HOST: redis
APP_REDIS_SIDEKIQ_HOST: redis
DATABASE_HOSTNAME: mysql_group_1
DATABASE_NAME: getninjas_test_features_1
ELASTICSEARCH_URL: http://elasticsearch:9200
MEMCACHED_HOST: memcache
RAILS_ENV: test
- name: test_features_2
pull: default
image: getninjas/ruby:2.4.5-chromedriver
depends_on: [ build ]
commands:
- chromedriver -v
- google-chrome --version
- bundle install --path vendor/bundle --with test --deployment
- ./dockerize -timeout 60s -wait tcp://mysql_group_2:3306 bundle exec rake db:create db:schema:load db:test:prepare
- "bundle exec rspec -P \"spec/features/[k-z]*/*_spec.rb\" --profile"
environment:
APP_REDIS_CORREIOS_HOST: redis
APP_REDIS_EXPERIMENTS_HOST: redis
APP_REDIS_HOST: redis
APP_REDIS_SEO_HOST: redis
APP_REDIS_SIDEKIQ_HOST: redis
DATABASE_HOSTNAME: mysql_group_2
DATABASE_NAME: getninjas_test_features_2
ELASTICSEARCH_URL: http://elasticsearch:9200
MEMCACHED_HOST: memcache
RAILS_ENV: test
- name: test_forms
pull: default
image: ruby:2.4.5
depends_on: [ build ]
commands:
- bundle install --path vendor/bundle --with test --deployment
- ./dockerize -timeout 60s -wait tcp://mysql_group_1:3306 bundle exec rake db:create db:schema:load db:test:prepare
- bundle exec rspec spec/forms/ --profile
environment:
APP_REDIS_CORREIOS_HOST: redis
APP_REDIS_EXPERIMENTS_HOST: redis
APP_REDIS_HOST: redis
APP_REDIS_SEO_HOST: redis
APP_REDIS_SIDEKIQ_HOST: redis
DATABASE_HOSTNAME: mysql_group_1
DATABASE_NAME: getninjas_test_forms
ELASTICSEARCH_URL: http://elasticsearch:9200
MEMCACHED_HOST: memcache
RAILS_ENV: test
- name: test_graph
pull: default
image: ruby:2.4.5
depends_on: [ build ]
commands:
- bundle install --path vendor/bundle --with test --deployment
- ./dockerize -timeout 60s -wait tcp://mysql_group_1:3306 bundle exec rake db:create db:schema:load db:test:prepare
- bundle exec rspec spec/graph/ --profile
environment:
APP_REDIS_CORREIOS_HOST: redis
APP_REDIS_EXPERIMENTS_HOST: redis
APP_REDIS_HOST: redis
APP_REDIS_SEO_HOST: redis
APP_REDIS_SIDEKIQ_HOST: redis
DATABASE_HOSTNAME: mysql_group_1
DATABASE_NAME: getninjas_test_graph
ELASTICSEARCH_URL: http://elasticsearch:9200
MEMCACHED_HOST: memcache
RAILS_ENV: test
- name: test_helpers
pull: default
image: ruby:2.4.5
depends_on: [ build ]
commands:
- bundle install --path vendor/bundle --with test --deployment
- ./dockerize -timeout 60s -wait tcp://mysql_group_1:3306 bundle exec rake db:create db:schema:load db:test:prepare
- bundle exec rspec spec/helpers/ --profile
environment:
APP_REDIS_CORREIOS_HOST: redis
APP_REDIS_EXPERIMENTS_HOST: redis
APP_REDIS_HOST: redis
APP_REDIS_SEO_HOST: redis
APP_REDIS_SIDEKIQ_HOST: redis
DATABASE_HOSTNAME: mysql_group_1
DATABASE_NAME: getninjas_test_helpers
ELASTICSEARCH_URL: http://elasticsearch:9200
MEMCACHED_HOST: memcache
RAILS_ENV: test
- name: test_lib
pull: default
image: ruby:2.4.5
depends_on: [ build ]
commands:
- bundle install --path vendor/bundle --with test --deployment
- ./dockerize -timeout 60s -wait tcp://mysql_group_1:3306 bundle exec rake db:create db:schema:load db:test:prepare
- bundle exec rspec spec/lib/ --profile
environment:
APP_REDIS_CORREIOS_HOST: redis
APP_REDIS_EXPERIMENTS_HOST: redis
APP_REDIS_HOST: redis
APP_REDIS_SEO_HOST: redis
APP_REDIS_SIDEKIQ_HOST: redis
DATABASE_HOSTNAME: mysql_group_1
DATABASE_NAME: getninjas_test_lib
ELASTICSEARCH_URL: http://elasticsearch:9200
MEMCACHED_HOST: memcache
RAILS_ENV: test
- name: test_mailers
pull: default
image: ruby:2.4.5
depends_on: [ build ]
commands:
- bundle install --path vendor/bundle --with test --deployment
- ./dockerize -timeout 60s -wait tcp://mysql_group_1:3306 bundle exec rake db:create db:schema:load db:test:prepare
- bundle exec rspec spec/mailers/ --profile
environment:
APP_REDIS_CORREIOS_HOST: redis
APP_REDIS_EXPERIMENTS_HOST: redis
APP_REDIS_HOST: redis
APP_REDIS_SEO_HOST: redis
APP_REDIS_SIDEKIQ_HOST: redis
DATABASE_HOSTNAME: mysql_group_1
DATABASE_NAME: getninjas_test_mailers
ELASTICSEARCH_URL: http://elasticsearch:9200
MEMCACHED_HOST: memcache
RAILS_ENV: test
- name: test_models_root_split_1
pull: default
image: ruby:2.4.5
depends_on: [ build ]
commands:
- bundle install --path vendor/bundle --with test --deployment
- ./dockerize -timeout 60s -wait tcp://mysql_group_1:3306 bundle exec rake db:create db:schema:load db:test:prepare
- "bundle exec rspec -P \"spec/models/[a-j]*_spec.rb\" --profile"
environment:
APP_REDIS_CORREIOS_HOST: redis
APP_REDIS_EXPERIMENTS_HOST: redis
APP_REDIS_HOST: redis
APP_REDIS_SEO_HOST: redis
APP_REDIS_SIDEKIQ_HOST: redis
DATABASE_HOSTNAME: mysql_group_1
DATABASE_NAME: getninjas_test_models_root_split_1
ELASTICSEARCH_URL: http://elasticsearch:9200
MEMCACHED_HOST: memcache
RAILS_ENV: test
- name: test_models_root_split_2
pull: default
image: ruby:2.4.5
depends_on: [ build ]
commands:
- bundle install --path vendor/bundle --with test --deployment
- ./dockerize -timeout 60s -wait tcp://mysql_group_2:3306 bundle exec rake db:create db:schema:load db:test:prepare
- "bundle exec rspec -P \"spec/models/[k-z]*_spec.rb\" --profile"
environment:
APP_REDIS_CORREIOS_HOST: redis
APP_REDIS_EXPERIMENTS_HOST: redis
APP_REDIS_HOST: redis
APP_REDIS_SEO_HOST: redis
APP_REDIS_SIDEKIQ_HOST: redis
DATABASE_HOSTNAME: mysql_group_2
DATABASE_NAME: getninjas_test_models_root_split_2
ELASTICSEARCH_URL: http://elasticsearch:9200
MEMCACHED_HOST: memcache
RAILS_ENV: test
- name: test_models_split_1
pull: default
image: ruby:2.4.5
depends_on: [ build ]
commands:
- bundle install --path vendor/bundle --with test --deployment
- ./dockerize -timeout 60s -wait tcp://mysql_group_1:3306 bundle exec rake db:create db:schema:load db:test:prepare
- "bundle exec rspec -P \"spec/models/[a-j]*/*_spec.rb\" --profile"
environment:
APP_REDIS_CORREIOS_HOST: redis
APP_REDIS_EXPERIMENTS_HOST: redis
APP_REDIS_HOST: redis
APP_REDIS_SEO_HOST: redis
APP_REDIS_SIDEKIQ_HOST: redis
DATABASE_HOSTNAME: mysql_group_1
DATABASE_NAME: getninjas_test_models_split_1
ELASTICSEARCH_URL: http://elasticsearch:9200
MEMCACHED_HOST: memcache
RAILS_ENV: test
- name: test_models_split_2
pull: default
image: ruby:2.4.5
depends_on: [ build ]
commands:
- bundle install --path vendor/bundle --with test --deployment
- ./dockerize -timeout 60s -wait tcp://mysql_group_2:3306 bundle exec rake db:create db:schema:load db:test:prepare
- "bundle exec rspec -P \"spec/models/[k-z]*/*_spec.rb\" --profile"
environment:
APP_REDIS_CORREIOS_HOST: redis
APP_REDIS_EXPERIMENTS_HOST: redis
APP_REDIS_HOST: redis
APP_REDIS_SEO_HOST: redis
APP_REDIS_SIDEKIQ_HOST: redis
DATABASE_HOSTNAME: mysql_group_2
DATABASE_NAME: getninjas_test_models_split_2
ELASTICSEARCH_URL: http://elasticsearch:9200
MEMCACHED_HOST: memcache
RAILS_ENV: test
- name: test_presenters
pull: default
image: ruby:2.4.5
depends_on: [ build ]
commands:
- bundle install --path vendor/bundle --with test --deployment
- ./dockerize -timeout 60s -wait tcp://mysql_group_2:3306 bundle exec rake db:create db:schema:load db:test:prepare
- bundle exec rspec spec/presenters/ --profile
environment:
APP_REDIS_CORREIOS_HOST: redis
APP_REDIS_EXPERIMENTS_HOST: redis
APP_REDIS_HOST: redis
APP_REDIS_SEO_HOST: redis
APP_REDIS_SIDEKIQ_HOST: redis
DATABASE_HOSTNAME: mysql_group_2
DATABASE_NAME: getninjas_test_presenters
ELASTICSEARCH_URL: http://elasticsearch:9200
MEMCACHED_HOST: memcache
RAILS_ENV: test
- name: test_representers
pull: default
image: ruby:2.4.5
depends_on: [ build ]
commands:
- bundle install --path vendor/bundle --with test --deployment
- ./dockerize -timeout 60s -wait tcp://mysql:3306 bundle exec rake db:create db:schema:load db:test:prepare
- bundle exec rspec spec/representers/ --profile
environment:
APP_REDIS_CORREIOS_HOST: redis
APP_REDIS_EXPERIMENTS_HOST: redis
APP_REDIS_HOST: redis
APP_REDIS_SEO_HOST: redis
APP_REDIS_SIDEKIQ_HOST: redis
DATABASE_HOSTNAME: mysql
DATABASE_NAME: getninjas_test_representers
ELASTICSEARCH_URL: http://elasticsearch:9200
MEMCACHED_HOST: memcache
RAILS_ENV: test
- name: test_requests
pull: default
image: ruby:2.4.5
depends_on: [ build ]
commands:
- bundle install --path vendor/bundle --with test --deployment
- ./dockerize -timeout 60s -wait tcp://mysql_group_2:3306 bundle exec rake db:create db:schema:load db:test:prepare
- bundle exec rspec spec/requests/ --profile
environment:
APP_REDIS_CORREIOS_HOST: redis
APP_REDIS_EXPERIMENTS_HOST: redis
APP_REDIS_HOST: redis
APP_REDIS_SEO_HOST: redis
APP_REDIS_SIDEKIQ_HOST: redis
DATABASE_HOSTNAME: mysql_group_2
DATABASE_NAME: getninjas_test_requests
ELASTICSEARCH_URL: http://elasticsearch:9200
MEMCACHED_HOST: memcache
RAILS_ENV: test
- name: test_routing
pull: default
image: ruby:2.4.5
depends_on: [ build ]
commands:
- bundle install --path vendor/bundle --with test --deployment
- ./dockerize -timeout 60s -wait tcp://mysql_group_2:3306 bundle exec rake db:create db:schema:load db:test:prepare
- bundle exec rspec spec/routing/ --profile
environment:
APP_REDIS_CORREIOS_HOST: redis
APP_REDIS_EXPERIMENTS_HOST: redis
APP_REDIS_HOST: redis
APP_REDIS_SEO_HOST: redis
APP_REDIS_SIDEKIQ_HOST: redis
DATABASE_HOSTNAME: mysql_group_2
DATABASE_NAME: getninjas_test_routing
ELASTICSEARCH_URL: http://elasticsearch:9200
MEMCACHED_HOST: memcache
RAILS_ENV: test
- name: test_serializers
pull: default
image: ruby:2.4.5
depends_on: [ build ]
commands:
- bundle install --path vendor/bundle --with test --deployment
- ./dockerize -timeout 60s -wait tcp://mysql_group_2:3306 bundle exec rake db:create db:schema:load db:test:prepare
- bundle exec rspec spec/serializers/ --profile --format j
environment:
APP_REDIS_CORREIOS_HOST: redis
APP_REDIS_EXPERIMENTS_HOST: redis
APP_REDIS_HOST: redis
APP_REDIS_SEO_HOST: redis
APP_REDIS_SIDEKIQ_HOST: redis
DATABASE_HOSTNAME: mysql_group_2
DATABASE_NAME: getninjas_test_serializers
ELASTICSEARCH_URL: http://elasticsearch:9200
MEMCACHED_HOST: memcache
RAILS_ENV: test
- name: test_services
pull: default
image: ruby:2.4.5
depends_on: [ build ]
commands:
- bundle install --path vendor/bundle --with test --deployment
- ./dockerize -timeout 60s -wait tcp://mysql_group_2:3306 bundle exec rake db:create db:schema:load db:test:prepare
- "bundle exec rspec spec/services/* --profile"
environment:
APP_REDIS_CORREIOS_HOST: redis
APP_REDIS_EXPERIMENTS_HOST: redis
APP_REDIS_HOST: redis
APP_REDIS_SEO_HOST: redis
APP_REDIS_SIDEKIQ_HOST: redis
DATABASE_HOSTNAME: mysql_group_2
DATABASE_NAME: getninjas_test_services
ELASTICSEARCH_URL: http://elasticsearch:9200
MEMCACHED_HOST: memcache
RAILS_ENV: test
- name: test_subscribers
pull: default
image: ruby:2.4.5
depends_on: [ build ]
commands:
- bundle install --path vendor/bundle --with test --deployment
- ./dockerize -timeout 60s -wait tcp://mysql_group_2:3306 bundle exec rake db:create db:schema:load db:test:prepare
- "bundle exec rspec spec/subscribers/* --profile"
environment:
APP_REDIS_CORREIOS_HOST: redis
APP_REDIS_EXPERIMENTS_HOST: redis
APP_REDIS_HOST: redis
APP_REDIS_SEO_HOST: redis
APP_REDIS_SIDEKIQ_HOST: redis
DATABASE_HOSTNAME: mysql_group_2
DATABASE_NAME: getninjas_test_subscribers
ELASTICSEARCH_URL: http://elasticsearch:9200
MEMCACHED_HOST: memcache
RAILS_ENV: test
- name: test_workers
pull: default
image: ruby:2.4.5
depends_on: [ build ]
commands:
- bundle install --path vendor/bundle --with test --deployment
- ./dockerize -timeout 60s -wait tcp://mysql_group_1:3306 bundle exec rake db:create db:schema:load db:test:prepare
- "bundle exec rspec spec/workers/* --profile"
environment:
APP_REDIS_CORREIOS_HOST: redis
APP_REDIS_EXPERIMENTS_HOST: redis
APP_REDIS_HOST: redis
APP_REDIS_SEO_HOST: redis
APP_REDIS_SIDEKIQ_HOST: redis
DATABASE_HOSTNAME: mysql_group_1
DATABASE_NAME: getninjas_test_workers
ELASTICSEARCH_URL: http://elasticsearch:9200
MEMCACHED_HOST: memcache
RAILS_ENV: test
- name: rebuild-cache
depends_on: [ build ]
pull: default
image: drillster/drone-volume-cache
failure: ignore
settings:
mount:
- ./vendor
rebuild: true
volumes:
- name: cache
path: /cache
volumes:
- name: cache
host:
path: /tmp
- name: mysql
temp:
medium: memory
- name: mysql_group_1
temp:
medium: memory
- name: mysql_group_2
temp:
medium: memory
services:
- name: mysql
depends_on: [ restore-cache ]
pull: default
image: getninjas/mysql56:test
environment:
MYSQL_ALLOW_EMPTY_PASSWORD: yes
privileged: true
volumes:
- name: mysql
path: /var/lib/mysql
- name: mysql_group_1
depends_on: [ restore-cache ]
pull: default
image: getninjas/mysql56:test
environment:
MYSQL_ALLOW_EMPTY_PASSWORD: yes
privileged: true
volumes:
- name: mysql_group_1
path: /var/lib/mysql
- name: mysql_group_2
depends_on: [ restore-cache ]
pull: default
image: getninjas/mysql56:test
environment:
MYSQL_ALLOW_EMPTY_PASSWORD: yes
privileged: true
volumes:
- name: mysql_group_2
path: /var/lib/mysql
- name: elasticsearch
depends_on: [ restore-cache ]
pull: default
image: elasticsearch:2-alpine
- name: memcached
depends_on: [ restore-cache ]
pull: default
image: memcached:alpine
- name: redis
depends_on: [ restore-cache ]
pull: default
image: redis:alpine
---
kind: pipeline
name: after
clone:
disable: true
depends_on:
- default
trigger:
status:
- success
- failure
steps:
- name: notify
image: plugins/slack
when:
status:
- success
- failure
settings:
webhook:
from_secret: slack_webhook
channel: deploy-tests
username: droneci
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment