mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
20 lines
680 B
YAML
20 lines
680 B
YAML
# cargo clippy is a superset of cargo check, so we don't check manually
|
|
code-quality:
|
|
extends: .recompile-branch
|
|
stage: check
|
|
image: registry.gitlab.com/veloren/veloren-docker-ci/cache/quality:${CACHE_IMAGE_TAG}
|
|
script:
|
|
- ln -s /dockercache/target target
|
|
- rm -r target/debug/incremental/* || echo "all good" # TMP FIX FOR 2021-03-22-nightly
|
|
- cargo clippy --all-targets --locked -- -D warnings
|
|
- cargo fmt --all -- --check
|
|
|
|
security:
|
|
extends: .recompile-branch
|
|
stage: check
|
|
image: registry.gitlab.com/veloren/veloren-docker-ci/cache/quality:${CACHE_IMAGE_TAG}
|
|
allow_failure: true
|
|
script:
|
|
- ln -s /dockercache/target target
|
|
- cargo audit
|