running cargo check with -D warnings seems to trigger a complete cache invalidation.

AND cargo check was implicitly run in clippy. In order to be future save we now ALWAYS run all CI with -D warnings.
(i verified that this works in a test pipeline)
This commit is contained in:
Marcel Märtens 2021-01-12 00:05:35 +01:00
parent 8539b67d9c
commit a3351be221
2 changed files with 4 additions and 3 deletions

View File

@ -32,7 +32,8 @@ before_script:
- export DISABLE_GIT_LFS_CHECK=true
- export VELOREN_ASSETS="$(pwd)/assets"
- echo "VELOREN_ASSETS=$VELOREN_ASSETS"
- rm -rf target || echo "some quickfix, idk why needed"
- export RUSTFLAGS="-D warnings"
- rm -rf target || echo "it seems that sometimes OLD data is left over"
workflow:
rules:

View File

@ -3,8 +3,8 @@ check:
stage: check
script:
- ln -s /dockercache/cache-all target
- RUSTFLAGS="-D warnings" cargo check --locked
- RUSTFLAGS="-D warnings" cargo check --examples --locked
- cargo check --locked
- cargo check --examples --locked
code-quality:
extends: .recompile-branch