mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
20 lines
696 B
Bash
Executable File
20 lines
696 B
Bash
Executable File
#!/bin/bash
|
|
# cargo clippy is a superset of cargo check, so we don't check manually
|
|
|
|
time cargo clippy \
|
|
--all-targets \
|
|
--locked \
|
|
--features="bin_cmd_doc_gen,bin_compression,bin_csv,bin_graphviz,bin_bot,bin_asset_migrate,asset_tweak,bin,stat,cli" \
|
|
-- -D warnings &&
|
|
|
|
# Ensure that the veloren-voxygen default-publish feature builds as it excludes some default features
|
|
time cargo clippy -p \
|
|
veloren-voxygen --locked \
|
|
--no-default-features \
|
|
--features="default-publish" \
|
|
-- -D warnings &&
|
|
|
|
# Ensure that test-server compiles
|
|
time cargo clippy --locked --bin veloren-server-cli --no-default-features -F simd -- -D warnings &&
|
|
time cargo fmt --all -- --check
|