Skip to content

Commit

Permalink
Configure drone.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
stuszynski committed Nov 14, 2018
1 parent be42c4e commit 0eb4813
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 19 deletions.
19 changes: 0 additions & 19 deletions .drone.yaml

This file was deleted.

31 changes: 31 additions & 0 deletions .drone.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# test
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 --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 0eb4813

Please sign in to comment.