mirror of
https://github.com/LemmyNet/lemmy
synced 2024-11-13 00:07:08 +00:00
start postgres later
This commit is contained in:
parent
37fc1d721f
commit
331985f0a0
1 changed files with 9 additions and 8 deletions
17
.drone.yml
17
.drone.yml
|
@ -34,6 +34,14 @@ steps:
|
||||||
- cargo install diesel_cli --no-default-features --features postgres
|
- cargo install diesel_cli --no-default-features --features postgres
|
||||||
- mv /root/.cargo/bin/diesel /dieselcli/diesel
|
- 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
|
- name: install deps and run cargo test
|
||||||
image: ekidd/rust-musl-builder:experimental-stable
|
image: ekidd/rust-musl-builder:experimental-stable
|
||||||
user: root
|
user: root
|
||||||
|
@ -50,7 +58,7 @@ steps:
|
||||||
- apt-get -y install --no-install-recommends espeak postgresql-client
|
- apt-get -y install --no-install-recommends espeak postgresql-client
|
||||||
- /dieselcli/diesel migration run
|
- /dieselcli/diesel migration run
|
||||||
- cargo test --workspace --no-fail-fast
|
- cargo test --workspace --no-fail-fast
|
||||||
|
|
||||||
- name: run federation tests
|
- name: run federation tests
|
||||||
image: docker/compose:alpine-1.27.4
|
image: docker/compose:alpine-1.27.4
|
||||||
commands:
|
commands:
|
||||||
|
@ -84,13 +92,6 @@ steps:
|
||||||
ref:
|
ref:
|
||||||
- refs/heads/feature-*
|
- refs/heads/feature-*
|
||||||
- refs/tags/*
|
- refs/tags/*
|
||||||
|
|
||||||
services:
|
|
||||||
- name: database
|
|
||||||
image: postgres:12-alpine
|
|
||||||
environment:
|
|
||||||
POSTGRES_USER: lemmy
|
|
||||||
POSTGRES_PASSWORD: password
|
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
- name: dieselcli
|
- name: dieselcli
|
||||||
|
|
Loading…
Reference in a new issue