mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-11-23 12:51: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:
|
steps:
|
||||||
|
|
||||||
- name: prepare repo
|
- name: prepare repo
|
||||||
image: ekidd/rust-musl-builder:1.51.0
|
image: rust:1.56-alpine
|
||||||
user: root
|
user: root
|
||||||
commands:
|
commands:
|
||||||
- chown 1000:1000 . -R
|
- chown 1000:1000 . -R
|
||||||
|
@ -20,15 +20,14 @@ steps:
|
||||||
commands:
|
commands:
|
||||||
- /root/.cargo/bin/cargo fmt -- --check
|
- /root/.cargo/bin/cargo fmt -- --check
|
||||||
|
|
||||||
# TODO disable this, because deadpool_diesel uses nightly features
|
- name: cargo clippy
|
||||||
# - name: cargo clippy
|
image: rust:1.56-alpine
|
||||||
# image: ekidd/rust-musl-builder:1.51.0
|
commands:
|
||||||
# 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 --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
|
||||||
# - cargo clippy --workspace -- -D clippy::unwrap_used
|
|
||||||
|
|
||||||
- name: cargo test
|
- name: cargo test
|
||||||
image: ekidd/rust-musl-builder:1.51.0
|
image: rust:1.56-alpine
|
||||||
environment:
|
environment:
|
||||||
LEMMY_DATABASE_URL: postgres://lemmy:password@database:5432/lemmy
|
LEMMY_DATABASE_URL: postgres://lemmy:password@database:5432/lemmy
|
||||||
LEMMY_CONFIG_LOCATION: ../../config/config.hjson
|
LEMMY_CONFIG_LOCATION: ../../config/config.hjson
|
||||||
|
@ -40,13 +39,13 @@ steps:
|
||||||
- cargo test --workspace --no-fail-fast
|
- cargo test --workspace --no-fail-fast
|
||||||
|
|
||||||
- name: check defaults.hjson updated
|
- name: check defaults.hjson updated
|
||||||
image: ekidd/rust-musl-builder:1.51.0
|
image: rust:1.56-alpine
|
||||||
commands:
|
commands:
|
||||||
- ./scripts/update_config_defaults.sh config/defaults_current.hjson
|
- ./scripts/update_config_defaults.sh config/defaults_current.hjson
|
||||||
- diff config/defaults.hjson config/defaults_current.hjson
|
- diff config/defaults.hjson config/defaults_current.hjson
|
||||||
|
|
||||||
- name: cargo build
|
- name: cargo build
|
||||||
image: ekidd/rust-musl-builder:1.51.0
|
image: rust:1.56-alpine
|
||||||
commands:
|
commands:
|
||||||
- cargo build
|
- cargo build
|
||||||
- mv target/x86_64-unknown-linux-musl/debug/lemmy_server target/lemmy_server
|
- mv target/x86_64-unknown-linux-musl/debug/lemmy_server target/lemmy_server
|
||||||
|
|
Loading…
Reference in a new issue