Skip to content

Commit 0eb4813

Browse files
committed
Configure drone.yaml
1 parent be42c4e commit 0eb4813

2 files changed

Lines changed: 31 additions & 19 deletions

File tree

.drone.yaml

Lines changed: 0 additions & 19 deletions
This file was deleted.

.drone.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# test
2+
pipeline:
3+
restore-cache:
4+
image: drillster/drone-volume-cache
5+
restore: true
6+
mount:
7+
- ./.bundle
8+
volumes:
9+
- /tmp/cache:/cache
10+
11+
build:
12+
image: ruby:2.2.1
13+
commands:
14+
- bundle install --path=.bundle/gems --without development production staging
15+
- bundle exec rake db:setup
16+
- bundle exec rake test
17+
environment:
18+
- RACK_ENV=test
19+
- DATABASE_URL=postgres://postgres:postgres@database/myapp_test
20+
21+
rebuild-cache:
22+
image: drillster/drone-volume-cache
23+
rebuild: true
24+
mount:
25+
- ./.bundle
26+
volumes:
27+
- /tmp/cache:/cache
28+
29+
services:
30+
database:
31+
image: postgres

0 commit comments

Comments
 (0)