Skip to content

Commit

Permalink
Enable cache
Browse files Browse the repository at this point in the history
  • Loading branch information
stuszynski committed Nov 15, 2018
1 parent cfb25a8 commit c9e333b
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion .drone.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit c9e333b

Please sign in to comment.