7 image: ekidd/rust-musl-builder:1.47.0
10 - chown 1000:1000 . -R
12 - name: check formatting
13 image: rustdocker/rust:nightly
15 - /root/.cargo/bin/cargo fmt -- --check
18 image: ekidd/rust-musl-builder:1.47.0
20 - cargo check --workspace --all-targets
23 image: ekidd/rust-musl-builder:1.47.0
27 - name: check documentation build
28 image: ekidd/rust-musl-builder:1.47.0
33 image: ekidd/rust-musl-builder:1.47.0
35 LEMMY_DATABASE_URL: postgres://lemmy:password@database:5432/lemmy
36 DATABASE_URL: postgres://lemmy:password@database:5432/lemmy
41 - sudo apt-get -y install --no-install-recommends espeak postgresql-client
42 - cargo test --workspace --no-fail-fast
45 image: ekidd/rust-musl-builder:1.47.0
47 - cargo build --release
49 - name: run federation tests
50 image: node:15-alpine3.12
52 - apk add bash curl postgresql-client
53 - bash api_tests/prepare-drone-federation-test.sh
58 - name: create docker tags
59 image: ekidd/rust-musl-builder:1.47.0
61 - echo "$(git describe),latest" > .tags
66 - name: make release build and push to docker hub
69 dockerfile: docker/prod/Dockerfile
72 repo: dessalines/lemmy
77 # TODO: also need to add more databases for federation test
78 # (or use multiple DBs in the same postgres instance)
81 image: postgres:12-alpine
84 POSTGRES_PASSWORD: password