10 - name: fetch git submodules
11 image: node:15-alpine3.12
14 - git submodule update --init --recursive --remote
18 image: ekidd/rust-musl-builder:1.47.0
21 - chown 1000:1000 . -R
23 - name: check documentation build
24 image: ekidd/rust-musl-builder:1.47.0
26 - cargo install mdbook --git https://github.com/Ruin0x11/mdBook.git --branch localization --rev d06249b
29 - name: check formatting
30 image: rustdocker/rust:nightly
32 - /root/.cargo/bin/cargo fmt -- --check
35 image: ekidd/rust-musl-builder:1.47.0
37 - cargo clippy --workspace --tests --all-targets --all-features -- -D warnings -D deprecated -D clippy::perf -D clippy::complexity -D clippy::dbg_macro
40 image: ekidd/rust-musl-builder:1.47.0
42 LEMMY_DATABASE_URL: postgres://lemmy:password@database:5432/lemmy
47 - sudo apt-get -y install --no-install-recommends espeak postgresql-client
48 - cargo test --workspace --no-fail-fast
51 image: ekidd/rust-musl-builder:1.47.0
54 - mv target/x86_64-unknown-linux-musl/debug/lemmy_server target/lemmy_server
56 - name: run federation tests
57 image: node:15-alpine3.12
59 LEMMY_DATABASE_URL: postgres://lemmy:password@database:5432
60 DO_WRITE_HOSTS_FILE: 1
62 - apk add bash curl postgresql-client
63 - bash api_tests/prepare-drone-federation-test.sh
68 - name: create docker tags
69 image: node:15-alpine3.12
71 - echo "$(git describe),latest" > .tags
76 - name: make release build and push to docker hub
79 dockerfile: docker/prod/Dockerfile
81 from_secret: docker_username
83 from_secret: docker_password
84 repo: dessalines/lemmy
92 image: postgres:12-alpine
95 POSTGRES_PASSWORD: password
108 image: rust:1.47-slim-buster
110 LEMMY_DATABASE_URL: postgres://lemmy:password@database:5432/lemmy
115 - apt-get -y install --no-install-recommends espeak postgresql-client libssl-dev pkg-config libpq-dev
116 - cargo test --workspace --no-fail-fast
119 # Using Debian here because there seems to be no official Alpine-based Rust docker image for ARM.
121 image: rust:1.47-slim-buster
124 - apt-get -y install --no-install-recommends libssl-dev pkg-config libpq-dev
126 - mv target/debug/lemmy_server target/lemmy_server
128 - name: run federation tests
129 image: node:15-buster-slim
131 LEMMY_DATABASE_URL: postgres://lemmy:password@database:5432
132 DO_WRITE_HOSTS_FILE: 1
134 - mkdir -p /usr/share/man/man1 /usr/share/man/man7
136 - apt-get -y install --no-install-recommends bash curl libssl-dev pkg-config libpq-dev postgresql-client libc6-dev
137 - bash api_tests/prepare-drone-federation-test.sh
142 - name: create docker tags
143 image: node:15-buster-slim
145 - echo "$(git describe),latest" > .tags
150 - name: make release build and push to docker hub
151 image: plugins/docker
153 dockerfile: docker/prod/Dockerfile.arm
155 from_secret: docker_username
157 from_secret: docker_password
158 repo: dessalines/lemmy
165 image: postgres:12-alpine
168 POSTGRES_PASSWORD: password