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
60 # cargo build --release
61 # mv target/x86_64-unknown-linux-musl/release/lemmy_server target/lemmy_server
63 image: ekidd/rust-musl-builder:1.47.0
66 - mv target/x86_64-unknown-linux-musl/debug/lemmy_server target/lemmy_server
67 - ls -la target/lemmy_server
69 - name: run federation tests
70 image: node:15-alpine3.12
72 - ls -la target/lemmy_server
73 - apk add bash curl postgresql-client
74 - bash api_tests/prepare-drone-federation-test.sh
79 - name: create docker tags
80 image: ekidd/rust-musl-builder:1.47.0
82 - echo "$(git describe),latest" > .tags
87 - name: make release build and push to docker hub
90 dockerfile: docker/prod/Dockerfile
93 repo: dessalines/lemmy
98 # TODO: also need to add more databases for federation test
99 # (or use multiple DBs in the same postgres instance)
102 image: postgres:12-alpine
105 POSTGRES_PASSWORD: password