Trying to fix drone 1

This commit is contained in:
Dessalines 2021-11-09 09:49:53 -05:00
parent 98211d92c0
commit 092b645573

View file

@ -9,7 +9,7 @@ platform:
steps:
- name: prepare repo
image: ekidd/rust-musl-builder:1.51.0
image: rust:1.56-alpine
user: root
commands:
- chown 1000:1000 . -R
@ -20,15 +20,14 @@ steps:
commands:
- /root/.cargo/bin/cargo fmt -- --check
# TODO disable this, because deadpool_diesel uses nightly features
# - name: cargo clippy
# image: ekidd/rust-musl-builder:1.51.0
# commands:
# - cargo clippy --workspace --tests --all-targets --all-features -- -D warnings -D deprecated -D clippy::perf -D clippy::complexity -D clippy::dbg_macro
# - cargo clippy --workspace -- -D clippy::unwrap_used
- name: cargo clippy
image: rust:1.56-alpine
commands:
- cargo clippy --workspace --tests --all-targets --all-features -- -D warnings -D deprecated -D clippy::perf -D clippy::complexity -D clippy::dbg_macro
- cargo clippy --workspace -- -D clippy::unwrap_used
- name: cargo test
image: ekidd/rust-musl-builder:1.51.0
image: rust:1.56-alpine
environment:
LEMMY_DATABASE_URL: postgres://lemmy:password@database:5432/lemmy
LEMMY_CONFIG_LOCATION: ../../config/config.hjson
@ -40,13 +39,13 @@ steps:
- cargo test --workspace --no-fail-fast
- name: check defaults.hjson updated
image: ekidd/rust-musl-builder:1.51.0
image: rust:1.56-alpine
commands:
- ./scripts/update_config_defaults.sh config/defaults_current.hjson
- diff config/defaults.hjson config/defaults_current.hjson
- name: cargo build
image: ekidd/rust-musl-builder:1.51.0
image: rust:1.56-alpine
commands:
- cargo build
- mv target/x86_64-unknown-linux-musl/debug/lemmy_server target/lemmy_server