veloren/.gitlab/CI/check.gitlab-ci.yml
Ben Wallis a590595149
Merged check and unit tests into single step
Reordered commands to run quickest first in order to tie up least CI resource
Fixed some clippy errors in examples
2021-01-19 19:58:51 +01:00

20 lines
577 B
YAML

check:
extends: .recompile-branch
stage: check
script:
- ln -s /dockercache/cache-all target
- cargo fmt --all -- --check
# TODO: currently there are some examples that fail clippy
# - cargo clippy --all-targets --locked -- -D warnings
- cargo clippy --bins --tests --locked -- -D warnings
- cargo test
- cargo test --package veloren-voxygen --lib test_all_localizations -- --nocapture --ignored
security:
extends: .recompile-branch
stage: check
allow_failure: true
script:
- ln -s /dockercache/cache-all target
- cargo audit