From c9e333b25a3a7bf8d1cfdac45145dc8a5674c5ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stanis=C5=82aw=20Tuszy=C5=84ski?= Date: Thu, 15 Nov 2018 17:38:04 +0100 Subject: [PATCH] Enable cache --- .drone.yml | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index 2529c3c..5429c10 100644 --- a/.drone.yml +++ b/.drone.yml @@ -1,14 +1,30 @@ pipeline: + restore-cache: + image: drillster/drone-volume-cache + restore: true + mount: + - ./.bundle + volumes: + - /tmp/cache:/cache + build: image: ruby:2.2.1 commands: - - bundle install + - bundle install --path=.bundle/gems --without development production staging - bundle exec rake db:setup - bundle exec rake test environment: - RACK_ENV=test - DATABASE_URL=postgres://postgres:postgres@database/myapp_test + rebuild-cache: + image: drillster/drone-volume-cache + rebuild: true + mount: + - ./.bundle + volumes: + - /tmp/cache:/cache + services: database: image: postgres