veloren/.gitlab/CI/check.gitlab-ci.yml
Marcel Märtens 8c883c200d Switch veloren_network over to use the official example layout.
adjusted those examples to run again
created a CI TEST to always `check` examples
fixed fmt in examples so that pipeline gets green
2020-08-26 10:07:22 +02:00

25 lines
583 B
YAML

check:
extends: .recompile-branch
stage: check
script:
- ln -s /dockercache/cache-all target
- RUSTFLAGS="-D warnings" cargo check --locked
- RUSTFLAGS="-D warnings" cargo check --examples --locked
code-quality:
extends: .recompile-branch
stage: check
script:
- ln -s /dockercache/cache-all target
- cargo clippy -- -D warnings
- cargo clippy --tests -- -D warnings
- cargo fmt --all -- --check
security:
extends: .recompile-branch
stage: check
allow_failure: true
script:
- ln -s /dockercache/cache-all target
- cargo audit