From: Nutomic Date: Fri, 3 Feb 2023 18:32:44 +0000 (+0900) Subject: Disable pictrs feature in CI to make it faster (#2698) X-Git-Url: http://these/git/%7B%60%24%7BwebArchiveUrl%7D/%22%7B%7D/%22https:/hacktivis.me/static/%7Bpost.url%7D?a=commitdiff_plain;h=4dddc3f717765bb2687a6aa576f0513e5fc0cbf8;p=lemmy.git Disable pictrs feature in CI to make it faster (#2698) --- diff --git a/.drone.yml b/.drone.yml index 4754aa9c..8c5fb0d3 100644 --- a/.drone.yml +++ b/.drone.yml @@ -29,6 +29,27 @@ steps: - rustup component add rustfmt --toolchain nightly - cargo +nightly fmt -- --check + # check each package to make sure they compile with default features. + # this is required for crates.io + - name: cargo check + image: clux/muslrust:1.67.0 + environment: + CARGO_HOME: .cargo + commands: + - cargo check --package lemmy_utils + - cargo check --package lemmy_db_schema + - cargo check --package lemmy_db_views + - cargo check --package lemmy_db_views_actor + - cargo check --package lemmy_db_views_moderator + - cargo check --package lemmy_api_common + - cargo check --package lemmy_api + - cargo check --package lemmy_api_crud + - cargo check --package lemmy_apub + - cargo check --package lemmy_routes + - cargo check --workspace + - cargo check --workspace --features console + # disabled because it takes too long with pict-rs + #- cargo check --workspace --all-features - name: cargo clippy image: clux/muslrust:1.67.0 @@ -38,7 +59,7 @@ steps: # latest rust for clippy to get extra checks # when adding new clippy lints, make sure to also add them in scripts/fix-clippy.sh - rustup component add clippy - - cargo clippy --workspace --tests --all-targets --all-features -- + - cargo clippy --workspace --tests --all-targets --features console -- -D warnings -D deprecated -D clippy::perf -D clippy::complexity -D clippy::style -D clippy::correctness -D clippy::suspicious -D clippy::dbg_macro -D clippy::inefficient_to_string @@ -47,25 +68,7 @@ steps: -D clippy::manual_string_new -D clippy::redundant_closure_for_method_calls -D clippy::unused_self -A clippy::uninlined_format_args - - cargo clippy --workspace --all-features -- -D clippy::unwrap_used - - - name: cargo check - image: clux/muslrust:1.67.0 - environment: - CARGO_HOME: .cargo - commands: - - cargo check --package lemmy_utils - - cargo check --package lemmy_db_schema - - cargo check --package lemmy_db_views - - cargo check --package lemmy_db_views_actor - - cargo check --package lemmy_db_views_moderator - - cargo check --package lemmy_api_common - - cargo check --package lemmy_api - - cargo check --package lemmy_api_crud - - cargo check --package lemmy_apub - - cargo check --package lemmy_routes - - cargo check --workspace --no-default-features - - cargo check --workspace --all-features + - cargo clippy --workspace --features console -- -D clippy::unwrap_used - name: lemmy_api_common doesnt depend on diesel image: clux/muslrust:1.67.0