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: make release build and push to docker hub
71 dockerfile: docker/prod/Dockerfile
73 from_secret: docker_username
75 from_secret: docker_password
76 repo: dessalines/lemmy
84 image: postgres:12-alpine
87 POSTGRES_PASSWORD: password
100 image: rust:1.47-slim-buster
102 LEMMY_DATABASE_URL: postgres://lemmy:password@database:5432/lemmy
107 - apt-get -y install --no-install-recommends espeak postgresql-client libssl-dev pkg-config libpq-dev
108 - cargo test --workspace --no-fail-fast
111 # Using Debian here because there seems to be no official Alpine-based Rust docker image for ARM.
113 image: rust:1.47-slim-buster
116 - apt-get -y install --no-install-recommends libssl-dev pkg-config libpq-dev
118 - mv target/debug/lemmy_server target/lemmy_server
120 - name: run federation tests
121 image: node:15-buster-slim
123 LEMMY_DATABASE_URL: postgres://lemmy:password@database:5432
124 DO_WRITE_HOSTS_FILE: 1
126 - mkdir -p /usr/share/man/man1 /usr/share/man/man7
128 - apt-get -y install --no-install-recommends bash curl libssl-dev pkg-config libpq-dev postgresql-client libc6-dev
129 - bash api_tests/prepare-drone-federation-test.sh
134 - name: make release build and push to docker hub
135 image: plugins/docker
137 dockerfile: docker/prod/Dockerfile.arm
139 from_secret: docker_username
141 from_secret: docker_password
142 repo: dessalines/lemmy
144 auto_tag_suffix: arm64
151 image: postgres:12-alpine
154 POSTGRES_PASSWORD: password