mirror of https://github.com/LemmyNet/lemmy.git
start postgres later
parent
37fc1d721f
commit
331985f0a0
15
.drone.yml
15
.drone.yml
|
@ -34,6 +34,14 @@ steps:
|
|||
- cargo install diesel_cli --no-default-features --features postgres
|
||||
- mv /root/.cargo/bin/diesel /dieselcli/diesel
|
||||
|
||||
# start postgres this way so that previous steps can be cached
|
||||
- name: database
|
||||
image: postgres:12-alpine
|
||||
environment:
|
||||
POSTGRES_USER: lemmy
|
||||
POSTGRES_PASSWORD: password
|
||||
detach: true
|
||||
|
||||
- name: install deps and run cargo test
|
||||
image: ekidd/rust-musl-builder:experimental-stable
|
||||
user: root
|
||||
|
@ -85,13 +93,6 @@ steps:
|
|||
- refs/heads/feature-*
|
||||
- refs/tags/*
|
||||
|
||||
services:
|
||||
- name: database
|
||||
image: postgres:12-alpine
|
||||
environment:
|
||||
POSTGRES_USER: lemmy
|
||||
POSTGRES_PASSWORD: password
|
||||
|
||||
volumes:
|
||||
- name: dieselcli
|
||||
temp: {}
|
Loading…
Reference in New Issue