mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-11-27 06:41:18 +00:00
Trying to fix drone 1
This commit is contained in:
parent
98211d92c0
commit
092b645573
1 changed files with 9 additions and 10 deletions
19
.drone.yml
19
.drone.yml
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue