mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-11-30 00:01:25 +00:00
use volume for diesel cli
This commit is contained in:
parent
82c3778082
commit
37fc1d721f
1 changed files with 16 additions and 5 deletions
21
.drone.yml
21
.drone.yml
|
@ -24,15 +24,17 @@ steps:
|
||||||
commands:
|
commands:
|
||||||
- mdbook build docs/
|
- mdbook build docs/
|
||||||
|
|
||||||
- name: install test deps
|
- name: install diesel cli
|
||||||
image: ekidd/rust-musl-builder:experimental-stable
|
image: ekidd/rust-musl-builder:experimental-stable
|
||||||
user: root
|
user: root
|
||||||
|
volumes:
|
||||||
|
- name: dieselcli
|
||||||
|
path: /dieselcli
|
||||||
commands:
|
commands:
|
||||||
- apt-get -y update
|
|
||||||
- apt-get -y install --no-install-recommends espeak postgresql-client
|
|
||||||
- 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
|
||||||
|
|
||||||
- name: 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
|
||||||
environment:
|
environment:
|
||||||
|
@ -40,8 +42,13 @@ steps:
|
||||||
DATABASE_URL: postgres://lemmy:password@database:5432/lemmy
|
DATABASE_URL: postgres://lemmy:password@database:5432/lemmy
|
||||||
RUST_BACKTRACE: 1
|
RUST_BACKTRACE: 1
|
||||||
RUST_TEST_THREADS: 1
|
RUST_TEST_THREADS: 1
|
||||||
|
volumes:
|
||||||
|
- name: dieselcli
|
||||||
|
path: /dieselcli
|
||||||
commands:
|
commands:
|
||||||
- /root/.cargo/bin/diesel migration run
|
- apt-get -y update
|
||||||
|
- apt-get -y install --no-install-recommends espeak postgresql-client
|
||||||
|
- /dieselcli/diesel migration run
|
||||||
- cargo test --workspace --no-fail-fast
|
- cargo test --workspace --no-fail-fast
|
||||||
|
|
||||||
- name: run federation tests
|
- name: run federation tests
|
||||||
|
@ -84,3 +91,7 @@ services:
|
||||||
environment:
|
environment:
|
||||||
POSTGRES_USER: lemmy
|
POSTGRES_USER: lemmy
|
||||||
POSTGRES_PASSWORD: password
|
POSTGRES_PASSWORD: password
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
- name: dieselcli
|
||||||
|
temp: {}
|
Loading…
Reference in a new issue