Skip to content

Commit daca287

Browse files
committed
Configure drone.yaml
1 parent be42c4e commit daca287

File tree

2 files changed

+30
-19
lines changed

2 files changed

+30
-19
lines changed

.drone.yaml

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

.drone.yml

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

0 commit comments

Comments
 (0)