2021-01-23 22:05:24 +00:00
|
|
|
# cargo clippy is a superset of cargo check, so we don't check manually
|
|
|
|
code-quality:
|
2020-06-03 08:31:05 +00:00
|
|
|
extends: .recompile-branch
|
2020-06-12 11:09:56 +00:00
|
|
|
stage: check
|
2021-05-20 04:21:53 +00:00
|
|
|
image: registry.gitlab.com/veloren/veloren-docker-ci/cache/quality:${CACHE_IMAGE_TAG}
|
2020-05-14 16:12:22 +00:00
|
|
|
script:
|
2021-05-20 04:21:53 +00:00
|
|
|
- ln -s /dockercache/target target
|
2021-06-01 17:58:21 +00:00
|
|
|
- rm -r target/debug/incremental/* || echo "all good" # TMP FIX FOR 2021-03-22-nightly
|
2021-06-27 19:35:43 +00:00
|
|
|
- cargo clippy --all-targets --locked --features="bin_compression,bin_csv,bin_graphviz,bin_bot,asset_tweak" -- -D warnings
|
2021-06-26 15:43:39 +00:00
|
|
|
# Ensure that the veloren-voxygen default-publish feature builds as it excludes some default features
|
|
|
|
- cargo clippy -p veloren-voxygen --locked --no-default-features --features="default-publish" -- -D warnings
|
2020-05-14 16:12:22 +00:00
|
|
|
- cargo fmt --all -- --check
|
2020-05-14 15:37:34 +00:00
|
|
|
|
|
|
|
security:
|
2020-06-03 08:31:05 +00:00
|
|
|
extends: .recompile-branch
|
2020-06-12 11:09:56 +00:00
|
|
|
stage: check
|
2021-05-20 04:21:53 +00:00
|
|
|
image: registry.gitlab.com/veloren/veloren-docker-ci/cache/quality:${CACHE_IMAGE_TAG}
|
2020-05-14 16:12:22 +00:00
|
|
|
allow_failure: true
|
|
|
|
script:
|
2021-05-20 04:21:53 +00:00
|
|
|
- ln -s /dockercache/target target
|
2020-05-14 16:12:22 +00:00
|
|
|
- cargo audit
|