7 image: ekidd/rust-musl-builder:1.47.0
10 - chown 1000:1000 . -R
13 image: ekidd/rust-musl-builder:1.47.0
18 image: ekidd/rust-musl-builder:1.47.0
22 - name: check documentation build
23 image: ekidd/rust-musl-builder:1.47.0
28 image: ekidd/rust-musl-builder:1.47.0
30 LEMMY_DATABASE_URL: postgres://lemmy:password@database:5432/lemmy
31 DATABASE_URL: postgres://lemmy:password@database:5432/lemmy
36 - sudo apt-get -y install --no-install-recommends espeak postgresql-client
37 - cargo install diesel_cli --no-default-features --features postgres --target-dir target/
39 - ./target/diesel migration run
40 - cargo test --workspace --no-fail-fast
43 image: ekidd/rust-musl-builder:1.47.0
47 - name: run federation tests
48 image: node:15-alpine3.12
51 - apt-get -y install --no-install-recommends bash curl postgresql-client
52 - bash api_tests/prepare-drone-federation-test.sh
57 - name: create docker tags
58 image: ekidd/rust-musl-builder:1.47.0
60 - echo "$(git describe),latest" > .tags
65 - name: make release build and push to docker hub
68 dockerfile: docker/prod/Dockerfile
71 repo: dessalines/lemmy
76 # TODO: also need to add more databases for federation test
77 # (or use multiple DBs in the same postgres instance)
80 image: postgres:12-alpine
83 POSTGRES_PASSWORD: password