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
22 image: ekidd/rust-musl-builder:1.47.0
24 - cargo check --workspace --all-targets
31 image: ekidd/rust-musl-builder:1.47.0
39 - name: check documentation build
40 image: ekidd/rust-musl-builder:1.47.0
45 image: ekidd/rust-musl-builder:1.47.0
47 LEMMY_DATABASE_URL: postgres://lemmy:password@database:5432/lemmy
48 DATABASE_URL: postgres://lemmy:password@database:5432/lemmy
53 - sudo apt-get -y install --no-install-recommends espeak postgresql-client
54 - cargo test --workspace --no-fail-fast
61 image: ekidd/rust-musl-builder:1.47.0
63 - cargo build --release
65 - name: run federation tests
66 image: node:15-alpine3.12
68 - apk add bash curl postgresql-client
69 - bash api_tests/prepare-drone-federation-test.sh
74 - name: create docker tags
75 image: ekidd/rust-musl-builder:1.47.0
77 - echo "$(git describe),latest" > .tags
82 - name: make release build and push to docker hub
85 dockerfile: docker/prod/Dockerfile
88 repo: dessalines/lemmy
93 # TODO: also need to add more databases for federation test
94 # (or use multiple DBs in the same postgres instance)
97 image: postgres:12-alpine
100 POSTGRES_PASSWORD: password