7 image: ekidd/rust-musl-builder:1.47.0
10 - chown 1000:1000 . -R
12 - name: check formatting
13 image: rustdocker/rustfmt:nightly
15 - /root/.cargo/bin/rustfmt --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
49 - name: run federation tests
50 image: node:15-alpine3.12
53 - apt-get -y install --no-install-recommends bash curl postgresql-client
54 - bash api_tests/prepare-drone-federation-test.sh
59 - name: create docker tags
60 image: ekidd/rust-musl-builder:1.47.0
62 - echo "$(git describe),latest" > .tags
67 - name: make release build and push to docker hub
70 dockerfile: docker/prod/Dockerfile
73 repo: dessalines/lemmy
78 # TODO: also need to add more databases for federation test
79 # (or use multiple DBs in the same postgres instance)
82 image: postgres:12-alpine
85 POSTGRES_PASSWORD: password