summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJustus Winter <justus@sequoia-pgp.org>2023-06-21 13:36:48 +0200
committerJustus Winter <justus@sequoia-pgp.org>2023-06-21 13:36:48 +0200
commitb950febe4557ccae7e333c4aa8f83d08cc0ad7b7 (patch)
treec30317de1b14169c018b557051d6f7f4373a2e01
parent2af6d91aaa94003b9eee2c3d0fd90b639ff91d90 (diff)
ci: Use doc job to catch modifications to the Cargo.lock file.justus/ci-fail-early
-rw-r--r--.gitlab-ci.yml2
1 files changed, 2 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 0fe5ea44..b161b53c 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -200,6 +200,8 @@ doc:
image: 192.168.122.1:5000/sequoia-pgp/build-docker-image/rust-stable-prebuild:latest
script:
- cargo doc --document-private-items --no-deps
+ - if ! git diff --quiet Cargo.lock ; then echo "Cargo.lock changed. Please add the change to the corresponding commit." ; git diff ; false ; fi
+ - if ! git diff --quiet ; then echo "The build changed the source. Please investigate." ; git diff ; fi
variables:
CARGO_TARGET_DIR: /target
CARGO_HOME: /cargo