mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-11-27 06:41:18 +00:00
Trying to fix drone 12
This commit is contained in:
parent
98d8bac724
commit
2a4f70d2fb
1 changed files with 11 additions and 15 deletions
26
.drone.yml
26
.drone.yml
|
@ -9,11 +9,10 @@ platform:
|
|||
steps:
|
||||
|
||||
- name: prepare repo
|
||||
image: rust:1.56-alpine
|
||||
image: clux/muslrust:1.56.0
|
||||
user: root
|
||||
commands:
|
||||
- chown 1000:1000 . -R
|
||||
- apk add git
|
||||
- git fetch --tags
|
||||
|
||||
- name: check formatting
|
||||
|
@ -21,36 +20,33 @@ steps:
|
|||
commands:
|
||||
- /root/.cargo/bin/cargo fmt -- --check
|
||||
|
||||
# - name: cargo clippy
|
||||
# image: rust:1.56-alpine
|
||||
# commands:
|
||||
# - rustup component add clippy
|
||||
# - apk add musl-dev openssl-dev postgresql-dev libpq
|
||||
# - 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: clux/muslrust:1.56.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 test
|
||||
image: rust:1.56-alpine
|
||||
image: clux/muslrust:1.56.0
|
||||
environment:
|
||||
LEMMY_DATABASE_URL: postgres://lemmy:password@database:5432/lemmy
|
||||
LEMMY_CONFIG_LOCATION: ../../config/config.hjson
|
||||
RUST_BACKTRACE: 1
|
||||
RUST_TEST_THREADS: 1
|
||||
commands:
|
||||
- apk add musl-dev openssl-dev postgresql-dev libpq postgresql-client
|
||||
- sudo apt-get update
|
||||
- sudo apt-get -y install --no-install-recommends postgresql-client
|
||||
- cargo test --workspace --no-fail-fast
|
||||
|
||||
- name: check defaults.hjson updated
|
||||
image: rust:1.56-alpine
|
||||
image: clux/muslrust:1.56.0
|
||||
commands:
|
||||
- apk add musl-dev openssl-dev postgresql-dev libpq diffutils sed
|
||||
- ./scripts/update_config_defaults.sh config/defaults_current.hjson
|
||||
- diff config/defaults.hjson config/defaults_current.hjson
|
||||
|
||||
- name: cargo build
|
||||
image: rust:1.56-alpine
|
||||
image: clux/muslrust:1.56.0
|
||||
commands:
|
||||
- apk add musl-dev openssl-dev postgresql-dev libpq
|
||||
- cargo build
|
||||
- mv target/x86_64-unknown-linux-musl/debug/lemmy_server target/lemmy_server
|
||||
|
||||
|
|
Loading…
Reference in a new issue