This could have been a larger check to make sure build introduces no
diffs, but our reliance on a crate patch for FreeBSD makes this too
messy. At least the common case of forgetting Cargo.lock will fail
the pipeline early.
Signed-off-by: Yann Dirson <yann.dirson@vates.fr>
stage: check
script:
- cargo build ${FEATURES} ${CARGO_FLAGS}
+ # make sure build introduces no diffs
+ # FIXME cannot be set there yet since we need a patch for FreeBSD
+ #- git diff --exit-code
.debian-build-template:
extends:
script:
- cargo clippy
+cargo-lock:
+ stage: check
+ extends:
+ - .debian-build-template
+ script:
+ - cargo tree
+ # if Cargo.lock was not commited, this will show here
+ - git diff --exit-code
+
## common defs
.featurematrix: